CVE-2026-54466
JSON

9.2critical

websocket-driver: Message corruption via abuse of protocol length headers

Severity
9.2critical CVSS:4.0 by GitHub_M
Exploit likelihood
0.22% (higher than 13% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-xv26-6w52-cph6

Description

websocket-driver is a WebSocket protocol handler with pluggable I/O. Prior to 0.7.5, the frame format in draft versions of the WebSocket protocol includes a length header that allows an arbitrarily large integer to be encoded as a sequence of bytes with the high bit set. By sending an indefinite sequence of bytes with values 0x80 or above, a client can make the server parse these bytes into an ever-growing integer in lib/websocket/driver/draft75.js; because JavaScript numbers are 64-bit floating point values, this number will eventually lose precision and lead to the subsequent payload being parsed incorrectly. This issue is fixed in version 0.7.5.

Affected

Product or packageVersionsReported by
faye websocket-driver-node< 0.7.5CVE List
websocket-driver (npm)before 0.7.5GitHub Advisory Database
faye websocket-driverbefore 0.7.5NVD

All scores

GitHub_M9.2critical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N
GitHubcritical CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Classification

CWE-130

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

websocket-driver is a WebSocket protocol handler with pluggable I/O. Prior to 0.7.5, the frame format in draft versions of the WebSocket protocol includes a length header that allows an arbitrarily large integer to be encoded as a sequence of bytes with the high bit set. By sending an indefinite sequence of bytes with values 0x80 or above, a client can make the server parse these bytes into an ever-growing integer in lib/websocket/driver/draft75.js; because JavaScript numbers are 64-bit floating point values, this number will eventually lose precision and lead to the subsequent payload being parsed incorrectly. This issue is fixed in version 0.7.5.

GitHub Advisory Database
Impact

The frame format in draft versions of the WebSocket protocol includes a length header that allows an arbitrarily large integer to be encoded as a sequence of bytes with the high bit set. By sending an indefinite sequence of bytes with values 0x80 or above, a client can make the server parse these bytes into an ever-growing integer. Since JavaScript numbers are 64-bit floating point values, this number will eventually lose precision and lead to the subsequent payload being parsed incorrectly.

Patches

The issue has been patched in version 0.7.5 by rejecting the message if the length header exceeds the configured maximum message length. All users should upgrade to this version.

Workarounds

No known workarounds exist.

Acknowledgements

This issue was discovered and reported by Pranjali Thakur, DepthFirst Security Research Team.

NVD (es)

websocket-driver es un gestor del protocolo WebSocket con E/S conectable. Antes de 0.7.5, el formato de trama en versiones preliminares del protocolo WebSocket incluye una cabecera de longitud que permite que un entero arbitrariamente grande sea codificado como una secuencia de bytes con el bit más significativo activado. Al enviar una secuencia indefinida de bytes con valores 0x80 o superiores, un cliente puede hacer que el servidor analice estos bytes en un entero en constante crecimiento en lib/websocket/driver/draft75.js; porque los números de JavaScript son valores de coma flotante de 64 bits, este número eventualmente perderá precisión y hará que la carga útil subsiguiente sea analizada incorrectamente. Este problema está solucionado en la versión 0.7.5.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-54466 changed 2026-07-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-xv26-6w52-cph6 changed 2026-09-10CC-BY-4.0
NVDCVE-2026-54466 changed 2026-10-24Public domain