npm
CVE-2026-140009
ws: Memory exhaustion DoS via unbounded automatic pong responses
- Severity
- High 7.5
- Published
- 1 Dec 2026
- Last changed
- 1 Dec 2026
- Added to UpHeron
- 1 Dec 2026
- Fixed in
- 5.2.8, 6.2.7, 7.5.14, 8.23.0
- Exploit chance
- 0.8% in the next 30 daysHigher than 56% of CVEs. EPSS by FIRST, 1 Dec 2026
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H- Also known as
- GHSA-37g9-w4hg-h9qr
- Sources
- OSV.dev and GitHub
Description
A malicious peer can flood the other peer with Ping frames while stopping reads, forcing it to buffer Pong frames that are automatically sent in response until memory is exhausted, leading to process termination due to OOM.
Workarounds
In vulnerable versions, the issue can be mitigated by enforcing rate-limiting combined with heartbeats, or by setting the autoPong option to false, if available.
Affected software
| Software | Affected versions |
|---|---|
wsnpm · osv:npm:ws |
|
About ws
- Weekly downloads (npm)
- 399,849,224npm, 1 Dec 2026
This is the only vulnerability in ws in our list.
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-140009
- GitHub Advisory Database https://github.com/advisories/GHSA-37g9-w4hg-h9qr