Read the docs

Denial of service in websocket-driver from malformed Sec-WebSocket-Key1 header

Priority MEDIUM 48CWE-248Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-248.

Summary

The faye websocket-driver-node package before 0.8.0 contains a flaw in its draft76 handshake parser, which derives integers from the Sec-WebSocket-Key1 and Sec-WebSocket-Key2 headers and writes them as unsigned 32-bit values without checking their size (CWE-248). An unauthenticated remote client can send a key whose derived value exceeds 32 bits, which raises an uncaught Buffer range exception and crashes the process on Node.js v22 and below.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

Description from the CNA

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.

Why it matters now

Fix Fixed websocket-driver-node (faye): 0.8.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
fayewebsocket-driver-nodebefore 0.8.00.8.0Patch availableCNA
  • websocket-driver-node Vendorfaye Affected before 0.8.0 Fixed in 0.8.0 Patch available CNA

Remediation

Upgrade websocket-driver-node to version 0.8.0, which fixes this issue. The sources list no other fixed version for websocket-driver-node.

Written with Claude Haiku 5.5 from the sources below · 2026-11-30

  • Fix · CNA websocket-driver-node (faye) Fixed in 0.8.0

Timeline

  1. 2026-11-30 Threatist record created from CVE-2026-140003

References

  • TI-2026-96606 Decompression bomb in Faye websocket-driver via permessage-deflate CVSS 4.0HIGH 8.7
  • TI-2026-101204 Crafted input in websocket-driver causes duplicate messages or crash CVSS 3.1CRITICAL 9.1
  • TI-2026-101214 Memory exhaustion in permessage-deflate-ruby message decompression CVSS 3.1HIGH 7.5
  • TI-2026-101207 Pong payload triggers crash in websocket-driver CVSS 3.1HIGH 7.5
  • TI-2026-101202 Memory exhaustion in websocket-driver buffers data sent after close CVSS 3.1HIGH 7.5
  • TI-2026-101201 Memory exhaustion in websocket-driver via zero-length fragmented frames CVSS 3.1HIGH 7.5
See all 16 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences