All vulnerabilities

npm

CVE-2026-140009

ws: Memory exhaustion DoS via unbounded automatic pong responses

Severity
High 7.5
Published
1 Dec 2026
Last changed
1 Dec 2026
Added to UpHeron
1 Dec 2026
Fixed in
5.2.8, 6.2.7, 7.5.14, 8.23.0
Exploit chance
0.8% in the next 30 daysHigher than 56% of CVEs. EPSS by FIRST, 1 Dec 2026
Weakness
Uncontrolled resource consumption (CWE-400)Allocation without limits (CWE-770)
Attack
Over the network · No login needed · No user action needed
Attacker can
Take it down
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Also known as
GHSA-37g9-w4hg-h9qr
Sources
OSV.dev and GitHub

Description

A malicious peer can flood the other peer with Ping frames while stopping reads, forcing it to buffer Pong frames that are automatically sent in response until memory is exhausted, leading to process termination due to OOM.

From the GitHub Advisory Database, CC BY 4.0.

Workarounds

In vulnerable versions, the issue can be mitigated by enforcing rate-limiting combined with heartbeats, or by setting the autoPong option to false, if available.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
wsnpm · osv:npm:ws
  • Every version before 5.2.8
  • From 6.0.0 before 6.2.7
  • From 7.0.0 before 7.5.14
  • From 8.0.0 before 8.23.0

About ws

Weekly downloads (npm)
399,849,224npm, 1 Dec 2026

This is the only vulnerability in ws in our list.

References