Vulnerability DatabaseCVE-2026-140009

CVE-2026-140009: 
JavaScript vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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.

Exploitation steps

  1. Identify target: Locate a network-accessible service running a vulnerable version of 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.
  2. Establish WebSocket connection: Connect to the target WebSocket server using a ws-based client: const ws = new WebSocket('ws://<target>:<port>').
  3. Pause reading on the attacker side: In the open event handler, call ws.pause() to stop consuming incoming data, preventing the server's queued Pong frames from being drained.
  4. Flood with Ping frames: Continuously send 125-byte Ping frames (the maximum WebSocket control frame payload size) using a recursive callback pattern:
const data = Buffer.alloc(125);
(function ping() {
  ws.ping(data, function(err) {
    if (err) return;
    ping();
  });
})();
  1. Victim exhausts memory: The target 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).

Indicators of compromise

  • Network: High-frequency WebSocket Ping frames (opcode 0x9) arriving from a single peer with 125-byte payloads; absence of corresponding Pong frames being sent back to the peer (indicating read-pause on the attacker side); sustained high-rate WebSocket control frame traffic from a single source IP.
  • Process: Rapidly increasing Node.js process memory consumption (RSS/heap) without a corresponding increase in application workload; Node.js process termination with an out-of-memory error or abnormal exit code.
  • Logs: Application logs showing a WebSocket connection from a specific peer followed by sudden process crash or OOM kill signal (e.g., SIGKILL from the OS); Node.js error output such as FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory.
  • System: OS-level OOM killer events in /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.

Mitigation and workarounds

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.

Community reactions

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.

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

RHEL / CentOS

Affected

OpenShift

openshift4/ose-console

Affected

RHEL 8

Not Affected

RHEL 9

Not Affected

RHEL 10

Not Affected

Source: This report was generated using AI

Related JavaScript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-141544HIGH7.4
  • JavaScript logoJavaScript
  • @convex-dev/auth
NoYesDec 02, 2026
GHSA-wmpw-3r4v-3cfqMEDIUMN/A
  • JavaScript logoJavaScript
  • seamless-auth-api
NoYesDec 02, 2026
GHSA-whmp-4gff-3wj4HIGHN/A
  • JavaScript logoJavaScript
  • seamless-auth-api
NoYesDec 02, 2026
GHSA-wf95-5mxm-9w7mMEDIUMN/A
  • JavaScript logoJavaScript
  • @seamless-auth/oidc-provider
NoYesDec 02, 2026
GHSA-rpv3-mpqm-rvhxMEDIUMN/A
  • JavaScript logoJavaScript
  • seamless-auth-api
NoYesDec 02, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management