CVE-2026-140009
7.5HighPublished Nov 30, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite
High
0CVSS v3.110
- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User action
- None
- Impact
- High impact on availability
- Weakness
- CWE-400, CWE-770
What an attacker gets
Remote attackers can crash your Node.js application by sending a flood of Ping frames. This causes the process to exhaust memory by buffering unconstrained Pong responses.
Root cause
The library fails to limit the number of queued Pong responses when a peer stops reading data.
Affected versions
ws versions prior to 5.2.8, 6.2.7, 7.5.14, and 8.23.0
CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Fix & remediation
Upgrade to ws version 5.2.8, 6.2.7, 7.5.14, or 8.23.0. If you cannot update, disable autoPong or implement strict rate limiting on incoming Ping frames.
$ npm install ws@latestAI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD 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.
References
- 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
Related Critical / High CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-759388.8HighAttackers with code execution on a newly provisioned PowerVS worker can steal an IBM IAM bearer token embedded in user-data. This allows them to escalate privileges and manipulate all infrastructure managed by that API key.
- CVE-2026-1400169.1CriticalUnauthenticated remote attackers can crash the server or duplicate application messages. This requires no user interaction or authentication.
- CVE-2026-1400157.5HighUnauthenticated remote attackers can crash your service by exhausting memory. They only need to send a stream of bytes after a WebSocket close frame to trigger the leak.
- CVE-2026-1400117.5HighUnauthenticated remote attackers can trigger a denial of service via memory exhaustion. They do this by sending highly compressible WebSocket messages that bypass configured size limits.
- CVE-2026-1400108.7HighUnauthenticated attackers can trigger a denial-of-service by causing high CPU usage. They only need to send a specially crafted HTML payload to an application using the vulnerable minifier.
- CVE-2026-1400088.7HighRemote attackers can cause a denial of service by blocking the JavaScript event loop. They only need to supply specially crafted, long wildcard-only glob patterns to the application.