CVE-2026-140015: websocket-driver: Memory exhaustion triggered by buffering of data received after socket is closed
websocket-driver is a WebSocket protocol handler with pluggable input and output. 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. This issue is fixed in version 0.9.1.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
websocket-driverto a version that resolves this vulnerability.Fixed in 0.9.1
Event History
Frequently Asked Questions
Who is exposed to this issue?
Servers using websocket-driver versions earlier than 0.9.1 are exposed if they pipe socket bytes into the driver. An unauthenticated remote peer can trigger the condition over a WebSocket connection.
What does an attacker need to do to cause the denial of service?
The attacker must send a WebSocket close frame, then keep the TCP connection half-open and continue sending bytes. Data received after the close event is buffered without being consumed, allowing memory use to grow until the process crashes.
Are confidentiality or integrity affected?
The provided severity vector indicates no confidentiality or integrity impact. The impact is availability: server memory can be exhausted and the affected process can crash.
How can I remediate the issue?
Upgrade websocket-driver to version 0.9.1, which fixes the unbounded buffering behavior after a close frame.