Source: node-websocket-driver
Version: 0.7.5+~cs0.6.14-1
X-Debbugs-CC: [email protected]
Severity: important
Tags: security upstream

Hi,

The following vulnerabilities were published for node-websocket-driver.

CVE-2026-140000[0]:
| websocket-driver is a WebSocket protocol handler with pluggable
| input and output. Prior to 0.8.2, StreamReader.read() uses
| Buffer.slice() for small reads, so small fragmented message frames
| can retain references to much larger TCP input Buffer objects.
| Before 0.8.1, unfinished fragments can retain source TCP reads until
| the message completes or reaches maxLength; in 0.8.1, compaction
| occurs after 1,000,000 fragments but can still retain up to
| 1,000,000 TCP inputs. An unauthenticated remote client can exploit
| this retention to cause substantial memory inflation and potentially
| exhaust server memory. This issue is fixed in version 0.8.2.


CVE-2026-140001[1]:
| websocket-driver is a WebSocket protocol handler with pluggable
| input and output. Prior to 0.8.1, the fragmented-message buffer
| stores every received frame payload, including zero-length Buffer
| objects, until a final fragment arrives. An unauthenticated remote
| client can keep one message unfinished while sending an indefinite
| stream of zero-length continuation frames, causing the fragment
| array to grow until the Node.js process exhausts heap memory and
| crashes. This issue is fixed in version 0.8.1.


CVE-2026-140002[2]:
| websocket-driver is a WebSocket protocol handler with pluggable
| input and output. Prior to 0.8.1, receiving a WebSocket close frame
| moves the driver into a state where the parser no longer consumes
| input, but a half-open TCP client can continue sending bytes that
| the driver buffers in memory. An unauthenticated remote client can
| send one close frame, keep its side of the connection open, and
| stream data indefinitely until the server exhausts memory and
| crashes. This issue is fixed in version 0.8.1.


CVE-2026-140003[3]:
| websocket-driver is a WebSocket protocol handler with pluggable
| input and output. Prior to 0.8.0, the draft76 handshake parser
| derives integers from Sec-WebSocket-Key1 and Sec-WebSocket-Key2 by
| extracting digits and dividing by the number of spaces, then writes
| the results as unsigned 32-bit values. An unauthenticated remote
| client can supply a key whose derived value exceeds 32 bits, causing
| a Buffer range exception that crashes the process on Node.js v22 and
| below. This issue is fixed in version 0.8.0.


CVE-2026-140004[4]:
| websocket-driver is a WebSocket protocol handler with pluggable
| input and output. Prior to 0.8.0, a bug in the draft75 and draft76
| message parser mishandles a short crafted byte sequence. An
| unauthenticated remote client can send this sequence over a legacy
| WebSocket connection, causing a received message to be emitted twice
| or causing the server process to crash. This issue is fixed in
| version 0.8.0.


CVE-2026-140005[5]:
| websocket-driver is a WebSocket protocol handler with pluggable
| input and output. Prior to 0.8.0, pong payloads are used directly as
| property names in an ordinary JavaScript callback object, allowing
| inherited Object properties to be selected even when no matching
| ping callback was registered. An unauthenticated remote peer can
| send a pong whose payload names a property such as __proto__ or
| hasOwnProperty, causing the driver to call a non-callback value or
| an unbound built-in method and crash the process on Node.js v22 and
| below. This issue is fixed in version 0.8.0.

If updating to 0.8.2 then all of the CVE will be covered, they are
fixed across 0.8.0 to 0.8.2.

If you fix the vulnerabilities please also make sure to include the
CVE (Common Vulnerabilities & Exposures) ids in your changelog entry.

For further information see:

[0] https://security-tracker.debian.org/tracker/CVE-2026-140000
    https://www.cve.org/CVERecord?id=CVE-2026-140000
[1] https://security-tracker.debian.org/tracker/CVE-2026-140001
    https://www.cve.org/CVERecord?id=CVE-2026-140001
[2] https://security-tracker.debian.org/tracker/CVE-2026-140002
    https://www.cve.org/CVERecord?id=CVE-2026-140002
[3] https://security-tracker.debian.org/tracker/CVE-2026-140003
    https://www.cve.org/CVERecord?id=CVE-2026-140003
[4] https://security-tracker.debian.org/tracker/CVE-2026-140004
    https://www.cve.org/CVERecord?id=CVE-2026-140004
[5] https://security-tracker.debian.org/tracker/CVE-2026-140005
    https://www.cve.org/CVERecord?id=CVE-2026-140005

Regards,
Salvatore

Reply via email to