GHSA-xv26-6w52-cph6: websocket-driver: Message corruption via abuse of protocol length headers
A vulnerability in websocket-driver prior to version 0.7.5 allows message corruption via abuse of protocol length headers. The issue arises because the WebSocket protocol draft frame format permits encoding an arbitrarily large integer length header as a sequence of bytes with the high bit set. A malicious client can send an indefinite sequence of such bytes, causing the server to parse an ever-growing integer that eventually loses precision due to JavaScript's 64-bit floating point number representation. This leads to incorrect parsing of the subsequent payload. The vulnerability has been patched in version 0.7.5 by rejecting messages with length headers exceeding the configured maximum message length. No known workarounds exist.
AI Analysis
Technical Summary
The websocket-driver package contains a vulnerability (CVE-2026-54466) related to the handling of length headers in WebSocket protocol draft frames. The length header can be encoded as a sequence of bytes with the high bit set, allowing an attacker to send an indefinite sequence of bytes (0x80 or above) that causes the server to parse an ever-growing integer. Due to JavaScript's 64-bit floating point number precision limits, this integer eventually loses precision, resulting in incorrect parsing of the message payload. This vulnerability is classified under CWE-130 (Improper Handling of Length Parameter). The issue is fixed in websocket-driver version 0.7.5 by rejecting messages with length headers exceeding the maximum allowed length.
Potential Impact
An attacker can exploit this vulnerability to cause message corruption by sending specially crafted WebSocket frames with length headers that cause the server to misinterpret the payload length. This can lead to incorrect processing of messages, potentially disrupting communication or causing application-level errors. The vulnerability does not require authentication and can be triggered remotely by a network attacker. There are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade websocket-driver to version 0.7.5 or later, where the vulnerability is patched by rejecting messages with length headers exceeding the configured maximum message length. No known workarounds exist. Users should apply this official fix promptly to prevent exploitation.
GHSA-xv26-6w52-cph6: websocket-driver: Message corruption via abuse of protocol length headers
Description
A vulnerability in websocket-driver prior to version 0.7.5 allows message corruption via abuse of protocol length headers. The issue arises because the WebSocket protocol draft frame format permits encoding an arbitrarily large integer length header as a sequence of bytes with the high bit set. A malicious client can send an indefinite sequence of such bytes, causing the server to parse an ever-growing integer that eventually loses precision due to JavaScript's 64-bit floating point number representation. This leads to incorrect parsing of the subsequent payload. The vulnerability has been patched in version 0.7.5 by rejecting messages with length headers exceeding the configured maximum message length. No known workarounds exist.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The websocket-driver package contains a vulnerability (CVE-2026-54466) related to the handling of length headers in WebSocket protocol draft frames. The length header can be encoded as a sequence of bytes with the high bit set, allowing an attacker to send an indefinite sequence of bytes (0x80 or above) that causes the server to parse an ever-growing integer. Due to JavaScript's 64-bit floating point number precision limits, this integer eventually loses precision, resulting in incorrect parsing of the message payload. This vulnerability is classified under CWE-130 (Improper Handling of Length Parameter). The issue is fixed in websocket-driver version 0.7.5 by rejecting messages with length headers exceeding the maximum allowed length.
Potential Impact
An attacker can exploit this vulnerability to cause message corruption by sending specially crafted WebSocket frames with length headers that cause the server to misinterpret the payload length. This can lead to incorrect processing of messages, potentially disrupting communication or causing application-level errors. The vulnerability does not require authentication and can be triggered remotely by a network attacker. There are no known exploits in the wild at this time.
Mitigation Recommendations
Upgrade websocket-driver to version 0.7.5 or later, where the vulnerability is patched by rejecting messages with length headers exceeding the configured maximum message length. No known workarounds exist. Users should apply this official fix promptly to prevent exploitation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-xv26-6w52-cph6
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-54466"]
- Ecosystems
- ["npm"]
- Database Specific Severity
- CRITICAL
- Cvss Version
- 4.0
Threat ID: 6a58b40e68715ace43d67c9b
Added to database: 07/16/2026, 10:35:58 UTC
Last enriched: 07/16/2026, 10:50:53 UTC
Last updated: 07/16/2026, 11:53:00 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.