- Home
- Vulnerabilities
- CVE-2026-140003
CVE-2026-140003
websocket-driver: Denial of service triggered by malformed Sec-WebSocket-Key1 header
Medium
51/100
Summary
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.
Affected products and versions
Faye (1 line(s))
| Product | Versions | Fixed in | Source |
|---|---|---|---|
| websocket-driver-node | Versions not specified | — | CNA (vendor or assigner) |
npm (1 line(s))
| Product | Versions | Fixed in | Source |
|---|---|---|---|
| websocket-driver | before 0.8.0 (excluded) |
0.8.0 |
GitHub Advisory |
Fix
Upgrade — npm/websocket-driver 0.8.0official source
Source : GitHub Advisory
Workaround
No workaround provided.
Check whether you are affected
Exploit reported by sources
These links are tagged “exploit” by the NVD or CVE.org. We have neither verified nor copied them; open with care.
Timeline
- — CVE published (cve)
CERT-FR advisories
- GHSA-c4gv-fww2-jp3r — websocket-driver: Denial of service triggered by malformed Sec-WebSocket-Key1 header 1 Dec 2026
References
- https://github.com/faye/websocket-driver-node/security/advisories/GHSA-c4gv-fww2-jp3rexploit
- https://github.com/faye/websocket-driver-node/commit/851117d21fa8eb98f22856b5600e0688c5337214x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-140003ADVISORY
- https://github.com/faye/websocket-driver-nodePACKAGE
Data provenance
- Status
- NVD
- Publication date
- NVD
- Description
- CNA (vendor or assigner)
- CVSS score
- CNA (vendor or assigner)
- Weakness (CWE)
- NVD
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H(CVSS 3.1, CNA:security-advisories@github.com)- Weakness
- CWE-248 · Autre (CWE-248)