Data Amplification Affecting org.webjars.npm:websocket-driver package, versions [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.66% (53rd 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-JAVA-ORGWEBJARSNPM-22743218
  • published23 Nov 2026
  • disclosed22 Nov 2026
  • creditZachariah Mithani

Introduced: 22 Nov 2026

NewCVE-2026-134813  (opens in a new tab)
CWE-409  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Data Amplification in the inflate handling in lib/session.js, which fully decompresses an incoming WebSocket frame before any size check and does not receive the maxLength limit configured on websocket-driver or faye-websocket. An unauthenticated remote client that negotiates the permessage-deflate extension can send a small, highly compressible message of one repeated byte, around 1/1000 of its decompressed size, and force the server to allocate a buffer about 1000 times the received frame, bypassing the configured limit and crashing the process when memory runs out. This affects any server whose WebSocket stack adds the permessage-deflate extension, and full remediation requires upgrading websocket-extensions and websocket-driver as well so the maxLength option is forwarded to the extension.

Workaround

This vulnerability can be avoided without upgrading by removing the permessage-deflate extension from the server configuration, which disables the compression path entirely.

CVSS Base Scores

version 4.0
version 3.1