CVE-2026-144302 — Websocket-driver — CWE-770
### Summary A WebSocket server built using `websocket-driver` can be made to buffer data from the client beyond the limit set by `maxLength`, if it attempts to close the socket but the client ignores this request and continues to send data on a half-open socket. ### Details When a `websocket-driver` instance calls `close()`, this has the effect of sending a WebSocket Close frame to the other peer. The peer should respond with its own Close frame and then both parties should close the connection. If the client ignores the Close frame, and instead continues to send message data, the server will continue to process this data (as it is listening for the client's Close response). However, it does not validate messages as it normally would and fails to reject messages that exceed `maxLength`. This happens even if the server closes the TCP socket, as the client can take advantage of TCP's half-open behaviour to keep sending data. The client can abuse this to make the server buffer an indefinite volume of data, ignoring the `maxLength` setting, until it runs out of memory and crashes. This was caused by the driver not enforcing validating on incoming messages. It has been mitigated by making the `close()` method put the parser in a state where `maxLength` will still be enforced, and a too-large message will result in it failing the connection. ### Proof of concept Given a server configured as follows, which responds to an incoming message by invoking `driver.close()`: ```js
### Summary A WebSocket server built using `websocket-driver` can be made to buffer data from the client beyond the limit set by `maxLength`, if it attempts to close the socket but the client ignores this request and continues to send data on a half-open socket. ### Details When a `websocket-driver` instance calls `close()`, this has the effect of sending a WebSocket Close frame to the other peer. The peer should respond with its own Close frame and then both parties should close the connection. If the client ignores the Close frame, and instead continues to send message data, the server will continue to process this data (as it is listening for the client's Close response). However, it does not validate messages as it normally would and fails to reject messages that exceed `maxLength`. This happens even if the server closes the TCP socket, as the client can take advantage of TCP's half-open behaviour to keep sending data. The client can abuse this to make the server buffer an indefinite volume of data, ignoring the `maxLength` setting, until it runs out of memory and crashes. This was caused by the driver not enforcing validating on incoming messages. It has been mitigated by making the `close()` method put the parser in a state where `maxLength` will still be enforced, and a too-large message will result in it failing the connection. ### Proof of concept Given a server configured as follows, which responds to an incoming message by invoking `driver.close()`: ```js
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-144302
CVSS 7.5/10 · HIGH · 03.12.2026
CWE: CWE-770
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 WHAT IS THIS VULNERABILITY?
Summary: ### Summary
A WebSocket server built using websocket-driver can be made to buffer data from the client beyond the limit set by maxLength, if it attempts to close the socket but the client ignores this request and continues to send data on a half-open socket. ### Details
When a websocket-driver instance calls close(), this has the effect of sending a WebSocket Close frame to the other …
Affected: websocket-driver
⚡ ATTACK VECTOR
Network / Remote (AV:N) · no authentication required (PR:N) · no user interaction (UI:N) · low attack complexity (AC:L).
🌍 REAL WORLD IMPACT
Partial confidentiality disclosure (C:L); service can be completely taken down.
🛡️ REMEDIATION
→ Apply vendor security update for websocket-driver.
→ Pre-patch: put service behind VPN or apply IP allowlist.
→ Add WAF rule, create IDS alert for anomalous traffic.
⚠️ URGENCY
⚠️ This week (7 days) — High risk, anonymous remote.
────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]