CVE-2026-140009
published high CVSS 3.1 · 7.5ws: Memory exhaustion DoS via unbounded automatic pong responses
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| websockets | — | ws< 5.2.8 · >= 6.0.0, < 6.2.7 · >= 7.0.0, < 7.5.14 · >= 8.0.0, < 8.23.0 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| websockets | ws | < 5.2.8 (affected)>= 6.0.0, < 6.2.7 (affected)>= 7.0.0, < 7.5.14 (affected)>= 8.0.0, < 8.23.0 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-400 CWE-400: Uncontrolled Resource Consumption
- CWE-770 CWE-770: Allocation of Resources Without Limits or Throttling
References
5- https://github.com/websockets/ws/commit/560e071478550f1227271b09993caff97753f1a1
- https://github.com/websockets/ws/commit/718c33c8e1ca09a01403eaddea9119b02a63ccfe
- https://github.com/websockets/ws/commit/8a10a6ad25b04b6a02c56d7237792b7e4ade12b7
- https://github.com/websockets/ws/commit/ace7248f685b10a87eff882e66c5b37fbee03d63
- https://github.com/websockets/ws/security/advisories/GHSA-37g9-w4hg-h9qr
Provider assertions
2GitHub_M · cna
ws: Memory exhaustion DoS via unbounded automatic pong responses
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 1d03a557f923a189a10df4fbe5fbda8bf97a26033df170f3f031dda881d21793
- Ingested
- 01 Dec 2026, 14:00:33 UTC
- Source record
- Official CVE record