Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. ws
  4. ›
  5. CVE-2026-140009

CVE-2026-140009: ws: Memory exhaustion DoS via unbounded automatic pong responses

December 1, 2026

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.

References

  • github.com/advisories/GHSA-37g9-w4hg-h9qr
  • github.com/websockets/ws/commit/560e071478550f1227271b09993caff97753f1a1
  • github.com/websockets/ws/commit/718c33c8e1ca09a01403eaddea9119b02a63ccfe
  • github.com/websockets/ws/commit/8a10a6ad25b04b6a02c56d7237792b7e4ade12b7
  • github.com/websockets/ws/commit/ace7248f685b10a87eff882e66c5b37fbee03d63
  • github.com/websockets/ws/releases/tag/5.2.8
  • github.com/websockets/ws/releases/tag/6.2.7
  • github.com/websockets/ws/releases/tag/7.5.14
  • github.com/websockets/ws/releases/tag/8.23.0
  • github.com/websockets/ws/security/advisories/GHSA-37g9-w4hg-h9qr
  • nvd.nist.gov/vuln/detail/CVE-2026-140009

Code Behaviors & Features

Detect and mitigate CVE-2026-140009 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 5.2.8, all versions starting from 6.0.0 before 6.2.7, all versions starting from 7.0.0 before 7.5.14, all versions starting from 8.0.0 before 8.23.0

Fixed versions

  • 5.2.8
  • 6.2.7
  • 7.5.14
  • 8.23.0

Solution

Upgrade to versions 5.2.8, 6.2.7, 7.5.14, 8.23.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

npm/ws/CVE-2026-140009.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 02 Dec 2026 00:16:45 +0000.