- Home
- Vulnerabilities
- CVE-2026-140009
CVE-2026-140009
ws: Memory exhaustion DoS via unbounded automatic pong responses
Medium
47/100
Summary
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 products and versions
websockets (1 line(s))
| Product | Versions | Fixed in | Source |
|---|---|---|---|
| ws | Versions not specified | — | CNA (vendor or assigner) |
npm (4 line(s))
Fix
Upgrade — npm/ws 5.2.8; npm/ws 6.2.7; npm/ws 7.5.14; npm/ws 8.23.0official source
Source : GitHub Advisory
Workaround
No workaround provided.
Check whether you are affected
No verification method provided.
Timeline
- — CVE published (cve)
CERT-FR advisories
- GHSA-37g9-w4hg-h9qr — ws: Memory exhaustion DoS via unbounded automatic pong responses 1 Dec 2026
References
- https://github.com/websockets/ws/security/advisories/GHSA-37g9-w4hg-h9qrx_refsource_CONFIRM
- https://github.com/websockets/ws/commit/560e071478550f1227271b09993caff97753f1a1x_refsource_MISC
- https://github.com/websockets/ws/commit/718c33c8e1ca09a01403eaddea9119b02a63ccfex_refsource_MISC
- https://github.com/websockets/ws/commit/8a10a6ad25b04b6a02c56d7237792b7e4ade12b7x_refsource_MISC
- https://github.com/websockets/ws/commit/ace7248f685b10a87eff882e66c5b37fbee03d63x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-140009ADVISORY
- https://github.com/websockets/wsPACKAGE
- https://github.com/websockets/ws/releases/tag/5.2.8WEB
- https://github.com/websockets/ws/releases/tag/6.2.7WEB
- https://github.com/websockets/ws/releases/tag/7.5.14WEB
- https://github.com/websockets/ws/releases/tag/8.23.0WEB
Data provenance
- Status
- NVD
- Publication date
- NVD
- Description
- CNA (vendor or assigner)
- CVSS score
- CNA (vendor or assigner)
- Weakness (CWE)
- NVD
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H(CVSS 3.1, CNA:security-advisories@github.com)- Weakness
- CWE-400 · Autre (CWE-400)