CVE-2026-140001: websocket-driver: Memory exhaustion triggered by buffering of zero-length fragmented frames
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.
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
Which deployments are exposed to this denial-of-service issue?
Deployments using websocket-driver versions before 0.8.1 are affected if an unauthenticated remote client can establish a WebSocket connection and send fragmented frames to the Node.js process.
What does an attacker need to do to trigger the crash?
No authentication or user interaction is required. The attacker keeps a fragmented message open and sends an indefinite stream of zero-length continuation frames, causing buffered frame entries to consume heap memory until the process crashes.
Is a patch available?
Yes. The issue is fixed in websocket-driver version 0.8.1.