Allocation of Resources Without Limits or Throttling Affecting websocket-driver package, versions <0.8.2


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.62% (52nd 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-WEBSOCKETDRIVER-23188800
  • published1 Dec 2026
  • disclosed30 Nov 2026
  • credit陳昱昇(YuSheng Chen)

Introduced: 30 Nov 2026

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

How to fix?

Upgrade websocket-driver to version 0.8.2 or higher.

Overview

websocket-driver is a websocket protocol handler with pluggable I/O.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via StreamReader.read() in lib/websocket/driver/stream_reader.js, which uses Buffer.slice() for small reads and thereby retains references to the original, much larger TCP input Buffer objects. A remote client can send a continuous stream of small fragmented message frames (each 1 byte) embedded in larger TCP reads, causing the server to hold live references to those TCP buffers indefinitely - because the fragments are buffered until the message completes or the total length reaches maxLength. This causes substantial memory inflation and can crash the server by exhausting available memory.

CVSS Base Scores

version 4.0
version 3.1