CVE-2026-140002: 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.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.
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.8.1
Event History
Frequently Asked Questions
What access does an attacker need to trigger the denial of service?
No authentication or user interaction is required. A remote client only needs to establish a WebSocket connection, send a close frame, keep its TCP side open, and continue sending data.
Which installations are affected and what version resolves the issue?
Installations using websocket-driver before version 0.8.1 are affected. Updating to version 0.8.1 resolves the issue.