Read the docs

ws: Memory exhaustion DoS via unbounded automatic pong responses

Priority MEDIUM 48CWE-400Published · 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-400.

Summary

ws, an open source WebSocket client and server for Node.js, does not bound the automatic Pong responses it queues. A malicious WebSocket peer can send Ping frames while it stops reading, causing ws to generate and buffer Pong frames without limit. The queued frames can exhaust process memory and terminate the application. Versions before 5.2.8, 6.2.7, 7.5.14 and 8.23.0 are affected.

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

Description from the CNA

ws is an open source WebSocket client and server for Node.js. Prior to 5.2.8, 6.2.7, 7.5.14, and 8.23.0, a malicious WebSocket peer can send Ping frames while stopping reads, causing ws to generate and buffer automatic Pong responses without a pending-response bound. The queued Pong frames can exhaust process memory and terminate the application; disabling autoPong where available or combining rate limiting with heartbeats mitigates the issue. This issue is fixed in versions 5.2.8, 6.2.7, 7.5.14, and 8.23.0.

Why it matters now

Fix Fixed ws (websockets): 5.2.8, 6.2.7, 7.5.14 +1

SSVC decision points

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

Affected products

VendorProductAffected versionsFixed inStatusSource
websocketswsbefore 5.2.8; 6.0.0 to before 6.2.7; 7.0.0 to before 7.5.14; 8.0.0 to before 8.23.05.2.8, 6.2.7, 7.5.14, 8.23.0Patch availableCNA
  • ws Vendorwebsockets Affected before 5.2.8; 6.0.0 to before 6.2.7; 7.0.0 to before 7.5.14; 8.0.0 to before 8.23.0 Fixed in 5.2.8, 6.2.7, 7.5.14, 8.23.0 Patch available CNA

Remediation

Upgrade ws to 5.2.8, 6.2.7, 7.5.14 or 8.23.0, the fixed version on each branch. Where available, disable autoPong. Otherwise, combine rate limiting with heartbeats.

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

  • Fix · CNA ws (websockets) Fixed in 5.2.8, 6.2.7, 7.5.14, 8.23.0

Timeline

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

References

  • TI-2026-36049 ws: Memory exhaustion DoS from tiny fragments and data chunks CVSS 3.1HIGH 7.5
  • TI-2024-25207 Denial of service when handling a request with many HTTP headers in ws CVSS 3.1HIGH 7.5
  • TI-2026-33473 ws: Uninitialized memory disclosure CVSS 3.1HIGH 7.5
  • TI-2016-08584 Uncontrolled resource consumption in HackerOne ws node module CVSS 3.0HIGH 7.5
  • TI-2016-08560 Memory corruption in HackerOne ws node module CVSS 3.0HIGH 7.5
  • TI-2021-12308 ReDoS in Sec-Websocket-Protocol header CVSS 3.1MEDIUM 5.3

Sources

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