Improper Handling of Length Parameter Inconsistency Affecting websocket-driver package, versions <0.7.5


Severity

Recommended
0.0
critical
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 IDSNYK-JS-WEBSOCKETDRIVER-17987994
  • published16 Jul 2026
  • disclosed15 Jul 2026
  • creditpranjalithakur

Introduced: 15 Jul 2026

NewCVE-2026-54466  (opens in a new tab)
CWE-130  (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 Improper Handling of Length Parameter Inconsistency through the hybi.js WebSocket frame processing in lib/websocket/driver. An attacker can corrupt how the server parses a message by sending a draft WebSocket frame with a length header made of an indefinite run of bytes with the high bit set, causing the parsed length to grow past the configured maximum. As the parser accumulates that oversized length into a JavaScript number, precision is lost and the following payload is decoded incorrectly, breaking message handling on the server and delivering malformed data to the application.

CVSS Base Scores

version 4.0
version 3.1