Home › CVE › JavaScript
CVE-2026-140009 — websockets ws
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.
Severity breakdown
High · 7.5
An attacker without an account can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Login needed
- no
- User action needed
- no
- Scope
- stays within the vulnerable component
- Impact
- high on availability, none on confidentiality and integrity
Weakness
- CWE-400: Uncontrolled Resource Consumption
- CWE-770: Allocation of Resources Without Limits or Throttling
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| websockets ws | < 5.2.8, >= 6.0.0, < 6.2.7, >= 7.0.0, < 7.5.14, >= 8.0.0, < 8.23.0 | — |
References by type
Vendor advisories
Patches and fixed releases
Affected
- websockets ws
What to do
- Check whether you run an affected product or version and apply the vendor's update or mitigation.
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-140009?
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. Weakness type: Uncontrolled Resource Consumption (CWE-400).
How severe is CVE-2026-140009?
CVE-2026-140009 has a CVSS 3.1 base score of 7.5 (high), from the CNA (github.com). An attacker without an account can exploit this over the network, without any user action.
Is CVE-2026-140009 being exploited?
Not as far as is known: CVE-2026-140009 is not in CISA's Known Exploited Vulnerabilities catalog as of December 1, 2026.
Which versions are affected by CVE-2026-140009?
websockets ws < 5.2.8, >= 6.0.0, < 6.2.7, >= 7.0.0, < 7.5.14, >= 8.0.0, < 8.23.0.
How do I fix CVE-2026-140009?
Apply the update or mitigation in the vendor's advisory, linked on this page under Vendor advisories.