npm
CVE-2026-140004
websocket-driver: Message corruption and denial of service triggered by crafted client message
- Severity
- Critical 9.1
- Published
- 1 Dec 2026
- Last changed
- 1 Dec 2026
- Added to UpHeron
- 1 Dec 2026
- Fixed in
- 0.8.0
- Exploit chance
- 0.6% in the next 30 daysHigher than 51% of CVEs. EPSS by FIRST, 1 Dec 2026
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Change data · Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H- Also known as
- GHSA-v36f-rjg3-3v46
- Sources
- OSV.dev and GitHub
Description
An unauthenticated remote client can trigger message corruption and denial of service by starting a draft75 or draft76 WebSocket connection and sending a brief sequence of bytes. The byte sequence is parsed incorrectly and can lead to duplicate messages or server crash.
The websocket-driver library supports earlier versions of the WebSocket protocol from before the RFC was standardised, particularly the draft75 and draft76 versions. There is a bug in the parsing of messages in these versions that can lead to the server duplicating received messages or crashing when a client sends a specific sequence of bytes over a connection being handled by this parser. No special conditions are required and the input message that triggers this behaviour is very short, so an attacker can easily crash a remote server.
To mitigate this, the parser bug has been fixed, and support for draft protocol versions has been disabled by default.
Affected software
| Software | Affected versions |
|---|---|
websocket-drivernpm · osv:npm:websocket-driver |
|
About websocket-driver
- Weekly downloads (npm)
- 39,177,273npm, 1 Dec 2026
Vulnerabilities in websocket-driver
- In our list
- 6
- Published in the last 12 months
- 6
- Critical, last 12 months
- 1
- High, last 12 months
- 5
- Known exploited
- 0
- CVE-2026-140001websocket-driver: Memory exhaustion triggered by buffering of zero-length fragmented framesHigh 7.5 1 Dec 2026
- CVE-2026-140002websocket-driver: Memory exhaustion triggered by buffering of data received after socket is closedHigh 7.5 1 Dec 2026
- CVE-2026-140003websocket-driver: Denial of service triggered by malformed Sec-WebSocket-Key1 headerHigh 7.5 1 Dec 2026
- CVE-2026-140005websocket-driver: Denial of service triggered by client sending a single pong frameHigh 7.5 1 Dec 2026
- CVE-2026-134813Faye websocket-driver 0.5.0 before 0.8.0 Decompression Bomb via permessage-deflateHigh 8.7 22 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-140004
- GitHub Advisory Database https://github.com/advisories/GHSA-v36f-rjg3-3v46