CVE-2026-140009

7.5High

Published Nov 30, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

7.5CVSS

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.

remediation — bash
$ npm install ws@latest

AI-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

Source: nvd.nist.gov/vuln/detail/CVE-2026-140009

More fully triaged vulnerabilities you may want to check next.