Websockets ws
ws: Memory exhaustion DoS via unbounded automatic pong responses
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 5.2.8
- >= 6.0.0, < 6.2.7
- >= 7.0.0, < 7.5.14
- >= 8.0.0, < 8.23.0
Fixed in 5.2.8, 6.2.7, 7.5.14, 8.23.0
Mitigation
Upgrade ws to 5.2.8 or 6.2.7 or 7.5.14 or 8.23.0 or later.
References
Timeline
Days relative to CVE publicationFirst public PoC 1.9 days after publication; not in CISA KEV. First PoC: googlesky/CVE-2026-140009 (created 2 Dec 2026, found by us: 2 Dec 2026).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| googlesky/CVE-2026-140009 | 2 Dec 2026 +1.9 d | 2 Dec 2026 | 0 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.