1. Home
  2. Vulnerabilities
  3. CVE-2026-140009

CVE-2026-140009

ws: Memory exhaustion DoS via unbounded automatic pong responses

Published 30 Nov 2026 · modified 4 Dec 2026 · Sources: NVD, CNA (vendor or assigner), CERT-FR, EPSS (FIRST)

Medium 47/100

Summary

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.

Affected products and versions

websockets (1 line(s))
websockets
ProductVersionsFixed inSource
ws Versions not specified — CNA (vendor or assigner)
npm (4 line(s))
npm
ProductVersionsFixed inSource
ws before 5.2.8 (excluded) 5.2.8 GitHub Advisory
ws from 6.0.0 (included) to 6.2.7 (excluded) 6.2.7 GitHub Advisory
ws from 7.0.0 (included) to 7.5.14 (excluded) 7.5.14 GitHub Advisory
ws from 8.0.0 (included) to 8.23.0 (excluded) 8.23.0 GitHub Advisory

Fix

Upgrade — npm/ws 5.2.8; npm/ws 6.2.7; npm/ws 7.5.14; npm/ws 8.23.0official source

Source : GitHub Advisory

Workaround

No workaround provided.

Check whether you are affected

No verification method provided.

Timeline

  1. — CVE published (cve)

CERT-FR advisories

References

Data provenance

Status
NVD
Publication date
NVD
Description
CNA (vendor or assigner)
CVSS score
CNA (vendor or assigner)
Weakness (CWE)
NVD
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (CVSS 3.1, CNA:security-advisories@github.com)
Weakness
CWE-400 · Autre (CWE-400)

How this data is obtained and calculated