websocket-driver: Denial of service triggered by malformed Sec-WebSocket-Key1 header
- CVE-2026-140003
- GHSA-c4gv-fww2-jp3r
- EUVD-2026-139726
Description
websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.0, the draft76 handshake parser derives integers from Sec-WebSocket-Key1 and Sec-WebSocket-Key2 by extracting digits and dividing by the number of spaces, then writes the results as unsigned 32-bit values. An unauthenticated remote client can supply a key whose derived value exceeds 32 bits, causing a Buffer range exception that crashes the process on Node.js v22 and below. This issue is fixed in version 0.8.0.
Text from the CVE.org record.
Recommendation
websocket-driver
- If you run a version before 0.8.0update to 0.8.0 or laterwebsocket-driver 0.8.0 on its registry (opens in a new tab)
Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
faye websocket-driver-node
Affected versions Fixed in < 0.8.0 none stated websocket-drivernpm
Affected versions Fixed in before 0.8.0 0.8.0
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.