CVE-2026-140016
CriticalCVSS 9.1Exploitation Probability (EPSS)
Elevated risk58th percentile - higher than 58% of all known CVEs
Summary
In websocket-driver prior to 0.9.0, message parsing for draft75 and draft76 WebSocket connections could incorrectly handle a short crafted byte sequence. An unauthenticated remote client could use this parsing flaw to duplicate an application message or crash the server. Draft protocols are disabled by default after the fix and require allow_drafts: true to enable.
Risk Assessment
An unauthenticated attacker can cause message duplication or crash the server process, disrupting service availability. The risk mainly affects environments where legacy draft protocols are enabled.
Recommendation
Update websocket-driver to version 0.9.0 or later. If possible, keep draft protocol support disabled (allow_drafts: false).
Other vulnerabilities in websocket-driver
See all- CVE-2026-140004Critical
In websocket-driver 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.
- CVE-2026-144303High
websocket-driver prior to 0.8.3 can process a nonempty Node HTTP upgrade body through uninitialized parser state if the application passes it before start(). An unauthenticated remote client can place WebSocket frame data in the same TCP chunk as handshake headers, causing an uncaught exception and process crash. The issue is fixed in version 0.8.3.
- CVE-2026-144302High
websocket-driver prior to 0.8.3, after a server calls close(), continues accepting client message data while waiting for the peer's Close response without enforcing maxLength. An unauthenticated client can ignore the Close frame and continue a large message over a half-open TCP connection, causing memory exhaustion and a server crash. The issue is fixed in version 0.8.3.
- CVE-2026-144295High
websocket-driver prior to 0.8.3 with allowDrafts enabled does not enforce maxLength while the draft-75/76 parser buffers an unterminated delimited message. An unauthenticated remote client can start a legacy frame without its terminator and continue supplying data, causing memory exhaustion and a process crash. The issue is fixed in version 0.8.3.
- CVE-2026-144294High
websocket-driver prior to 0.9.2, after a server calls close(), can continue accepting message data from a client ignoring the Close frame without enforcing max_length. A client can exploit a half-open TCP connection to send an oversized message, causing unbounded buffering and a remote server crash. The issue is fixed in version 0.9.2.
- CVE-2026-144293High
websocket-driver prior to 0.9.2 with allow_drafts enabled can select the draft-75/76 delimited-frame parser, which buffers an unterminated message beyond max_length. An unauthenticated remote client can start a legacy draft text frame and omit its terminating delimiter, causing memory consumption to grow until the server process crashes. The issue is fixed in version 0.9.2.
- CVE-2026-140015High
In websocket-driver prior to 0.9.1, a server piping socket bytes into websocket-driver continued adding data to an internal buffer after a WebSocket close frame caused the driver to emit a close event. Because TCP permits the peer to keep a half-open connection and continue sending bytes, the unconsumed buffer could grow indefinitely until an unauthenticated remote attacker exhausted server memory and crashed the process.
- CVE-2026-140005High
In websocket-driver 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.
- CVE-2026-140003High
In websocket-driver 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.
- CVE-2026-140002High
In websocket-driver 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 and stream data indefinitely until the server exhausts memory and crashes.
Original NVD description (English source)
websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.9.0, message parsing for draft75 and draft76 WebSocket connections could incorrectly handle a short crafted byte sequence. An unauthenticated remote client could use this parsing flaw to duplicate an application message or crash the server. Draft protocols are disabled by default after the fix and require allow_drafts: true to enable. This issue is fixed in version 0.9.0.
Vulnerability data from NVD (NIST) · CISA KEV · EPSS

