ws: Memory exhaustion DoS via unbounded automatic pong responses
- CVE-2026-140009
- GHSA-37g9-w4hg-h9qr
- EUVD-2026-139734
Description
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.
Text from the CVE.org record.
Recommendation
ws
- If you run a version from 8.0.0 to before 8.23.0update to 8.23.0 or laterMinor version change: check the release notesws 8.23.0 on its registry (opens in a new tab)
- If you run a version from 7.0.0 to before 7.5.14update to 7.5.14 or laterMinor version change: check the release notesws 7.5.14 on its registry (opens in a new tab)
- If you run a version from 6.0.0 to before 6.2.7update to 6.2.7 or laterMinor version change: check the release notesws 6.2.7 on its registry (opens in a new tab)
- If you run a version before 5.2.8update to 5.2.8 or laterws 5.2.8 on its registry (opens in a new tab)
Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
websockets ws
Affected versions Fixed in < 5.2.8 none stated >= 6.0.0, < 6.2.7 none stated >= 7.0.0, < 7.5.14 none stated >= 8.0.0, < 8.23.0 none stated wsnpm
Affected versions Fixed in from 8.0.0 to before 8.23.0 8.23.0 from 7.0.0 to before 7.5.14 7.5.14 from 6.0.0 to before 6.2.7 6.2.7 before 5.2.8 5.2.8
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.