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 package | Versions | Reported by |
|---|---|---|
| faye websocket-driver-node | < 0.7.5 | CVE List |
| websocket-driver (npm) | before 0.7.5 | GitHub Advisory Database |
| faye websocket-driver | before 0.7.5 | NVD |
All scores
| GitHub_M | 9.2critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N |
| GitHub | critical CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Classification
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-54466 changed 2026-07-20 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-xv26-6w52-cph6 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-54466 changed 2026-10-24 | Public domain |