
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-140009 is a memory exhaustion denial-of-service vulnerability in the ws Node.js WebSocket library, caused by unbounded automatic Pong response buffering. A malicious WebSocket peer can flood the victim with Ping frames while stopping reads, forcing ws to queue Pong responses indefinitely until the process exhausts available memory and terminates. Affected versions are ws < 5.2.8, >= 6.0.0 < 6.2.7, >= 7.0.0 < 7.5.14, and >= 8.0.0 < 8.23.0. The advisory was published on November 12, 2026, and the CVE was received by NVD on November 30, 2026. It carries a CVSS v3.1 base score of 7.5 (High) (GitHub Advisory).
The root cause is classified as CWE-400 (Uncontrolled Resource Consumption) and CWE-770 (Allocation of Resources Without Limits or Throttling). By default, ws automatically generates a Pong frame in response to every received Ping frame (autoPong behavior). When an attacker establishes a WebSocket connection, pauses reading on their side (preventing the victim's outbound Pong frames from being drained), and continuously sends maximum-size (125-byte) Ping frames, the victim's ws instance queues an ever-growing number of Pong frames in memory with no upper bound. This unbounded buffering leads to an out-of-memory (OOM) condition and process termination. A complete, runnable JavaScript proof-of-concept is included in the official advisory (GitHub Advisory).
Successful exploitation results in a complete denial of service — the targeted Node.js process is terminated due to OOM exhaustion. There is no confidentiality or integrity impact; the vulnerability is purely an availability issue. Any application or service built on a vulnerable version of ws that exposes a WebSocket endpoint is at risk, including both server-side and client-side uses of the library (GitHub Advisory).
A public proof-of-concept exploit written in JavaScript is available in the official GitHub Security Advisory and requires no authentication or user interaction to execute (GitHub Advisory). The attack is fully automatable over the network with low complexity. The EPSS score is approximately 0.77%, and there is no evidence of in-the-wild exploitation or threat actor attribution at this time. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.
ws (< 5.2.8, >= 6.0.0 < 6.2.7, >= 7.0.0 < 7.5.14, or >= 8.0.0 < 8.23.0) that exposes a WebSocket endpoint.ws-based client: const ws = new WebSocket('ws://<target>:<port>').open event handler, call ws.pause() to stop consuming incoming data, preventing the server's queued Pong frames from being drained.const data = Buffer.alloc(125);
(function ping() {
ws.ping(data, function(err) {
if (err) return;
ping();
});
})();ws instance automatically queues a Pong response for each received Ping. Since the attacker is not reading, these Pong frames accumulate in memory without bound until the Node.js process is terminated by an OOM condition (GitHub Advisory).SIGKILL from the OS); Node.js error output such as FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory./var/log/syslog or dmesg referencing the Node.js process; unexpected process restarts by a process manager (e.g., PM2, systemd) for the affected service.Upgrade the ws npm package to a patched version: 8.23.0 (commit ace7248), 7.5.14 (commit 718c33c), 6.2.7 (commit 8a10a6a), or 5.2.8 (commit 560e071), depending on the major version in use (GitHub Advisory). The fix introduces a maxPendingAutoPongs option (defaulting to 60) that limits queued auto-Pong frames and forcibly terminates the connection if the threshold is exceeded. If immediate patching is not possible, set autoPong: false (where available) to disable automatic Pong responses, or implement connection-level rate limiting combined with heartbeat monitoring to restrict excessive Ping frame flooding.
The vulnerability was responsibly disclosed by multiple independent reporters including Younghun Ko, G0r4ni8, fizzbeom, Huynh Cong Hieu, Joseph Devasia, elba.code, Eshan Singh, and Zachariah Mithani, indicating broad community awareness of the issue (GitHub Advisory). No significant public commentary, media coverage, or notable researcher statements beyond the advisory itself have been identified at this time.
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."