# CVE-2026-140003: websocket-driver: Denial of service triggered by malformed Sec-WebSocket-Key1 header

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.62%, higher than 51% of CVEs (2026-12-01)
- Published: 2026-11-30T21:26:36.930Z
- Modified: 2026-12-01T18:30:04.107Z
- Also known as: GHSA-c4gv-fww2-jp3r
- Weaknesses: CWE-248
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- faye websocket-driver-node: < 0.8.0
- websocket-driver (npm): before 0.8.0

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/faye/websocket-driver-node/security/advisories/GHSA-c4gv-fww2-jp3r> (web)
- <https://github.com/faye/websocket-driver-node/commit/851117d21fa8eb98f22856b5600e0688c5337214> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-140003> (advisory)
- <https://github.com/faye/websocket-driver-node> (package)

## Sources

- CVE List: [CVE-2026-140003](https://www.cve.org/CVERecord?id=CVE-2026-140003), CVE Terms of Use, modified 2026-11-30
- GitHub Advisory Database: [GHSA-c4gv-fww2-jp3r](https://github.com/advisories/GHSA-c4gv-fww2-jp3r), CC-BY-4.0, modified 2026-12-01
- NVD: [CVE-2026-140003](https://nvd.nist.gov/vuln/detail/CVE-2026-140003), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-140003 · Whole record: https://cve.day/CVE-2026-140003.json · Rebuilt by cve.day 2026-12-01T18:47:13.207Z
