1. Home
  2. Vulnerabilities
  3. CVE-2026-140003

CVE-2026-140003

websocket-driver: Denial of service triggered by malformed Sec-WebSocket-Key1 header

Published 30 Nov 2026 · modified 4 Dec 2026 · Sources: NVD, CNA (vendor or assigner), CERT-FR, EPSS (FIRST)

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))
Faye
ProductVersionsFixed inSource
websocket-driver-node Versions not specified — CNA (vendor or assigner)
npm (1 line(s))
npm
ProductVersionsFixed inSource
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

  1. — CVE published (cve)

CERT-FR advisories

References

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)

How this data is obtained and calculated