Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

GHSA-xv26-6w52-cph6: websocket-driver: Message corruption via abuse of protocol length headers

0
Critical
Published: 07/15/2026 (07/15/2026, 22:07:24 UTC)
Source: GCVE Database
Product: websocket-driver

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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
High
Subsq. Availability
None
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

Affected software

npmghsa
websocket-driver
Affected versions
<0.7.5

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/16/2026, 10:50:53 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses