CVE-2026-140004: websocket-driver: Message corruption and denial of service triggered by crafted client message
websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.0, a bug in the draft75 and draft76 message parser mishandles a short crafted byte sequence. An unauthenticated remote client can send this sequence over a legacy WebSocket connection, causing a received message to be emitted twice or causing the server process to crash. This issue is fixed in version 0.8.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 0.8.0
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments using websocket-driver versions before 0.8.0 are affected only when handling legacy draft75 or draft76 WebSocket connections. The vulnerable parser is not identified as affecting other WebSocket protocol versions.
What does an attacker need to exploit the flaw?
An unauthenticated remote client only needs to establish a legacy WebSocket connection and send a short crafted byte sequence. No privileges or user interaction are required.
What can happen if exploitation succeeds?
The server may emit a received message twice, which can corrupt application-level message handling, or the server process may crash, causing denial of service.
What should be done if the affected component is in use?
Upgrade websocket-driver to version 0.8.0, which fixes the issue. If upgrading cannot happen immediately, the provided data indicates that exposure depends on accepting draft75 or draft76 connections.