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


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.26% (18th 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-17987674
  • published16 Jul 2026
  • disclosed15 Jul 2026
  • creditpranjalithakur

Introduced: 15 Jul 2026

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

How to fix?

Upgrade websocket-driver to version 0.7.5 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 message compression through the hybi message handling in lib/websocket/driver/hybi.js. An attacker can make a WebSocket server or client accept oversized messages by sending compressed permessage-deflate frames whose post-decompression payload exceeds the configured maximum length. The length check is applied to the frame data before extension processing, so the application enforces the limit on compressed input rather than the expanded message. This can let attacker-supplied messages consume more memory and processing than intended, causing resource exhaustion or other breakage in deployments that rely on the max-message-size setting.

Notes

  • Affected deployments are the ones that negotiate permessage-deflate; the bypass is in the post-extension message path, so the configured max-length setting is only meaningful for traffic that is actually processed through that extension chain.
  • The issue can affect both servers and clients using the library, since the length check sits in the shared hybi message handling path rather than in a server-only code path.

CVSS Base Scores

version 4.0
version 3.1