Allocation of Resources Without Limits or Throttling Affecting ws package, versions <5.2.8>=6.0.0 <6.2.7>=7.0.0 <7.5.14>=8.0.0 <8.23.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.77% (57th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-WS-23188836
  • published1 Dec 2026
  • disclosed30 Nov 2026
  • creditYounghun Ko, G0r4ni8, fizzbeom, Huynh Cong Hieu, Joseph Devasia, apflffhtm, Eshan Singh, Zachariah Mithani

Introduced: 30 Nov 2026

NewCVE-2026-140009  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade ws to version 5.2.8, 6.2.7, 7.5.14, 8.23.0 or higher.

Overview

ws is a simple to use websocket client, server and console for node.js.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the receiverOnPing handler, which generates and buffers automatic Pong responses without any bound on the number of pending responses. A malicious peer can continuously send Ping frames while pausing reads, causing the victim process to queue unbounded Pong frames until memory is exhausted and the process terminates due to an out-of-memory condition.

Workaround

In vulnerable versions, set the autoPong option to false where available, or enforce rate-limiting combined with heartbeats.

CVSS Base Scores

version 4.0
version 3.1