CVE-2026-140016: 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.9.0, message parsing for draft75 and draft76 WebSocket connections could incorrectly handle a short crafted byte sequence. An unauthenticated remote client could use this parsing flaw to duplicate an application message or crash the server. Draft protocols are disabled by default after the fix and require allowdrafts: true to enable. This issue is fixed in version 0.9.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.9.0
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Deployments using websocket-driver versions before 0.9.0 that accept draft75 or draft76 WebSocket connections are exposed. Draft protocol support requires allow_drafts: true after the fix; the provided information does not establish whether it was enabled by default in affected releases.
What does an attacker need to exploit the vulnerability?
An unauthenticated remote client only needs to send a short crafted byte sequence through a draft75 or draft76 WebSocket connection. No credentials or user interaction are required.
What can happen if exploitation succeeds?
The crafted message can cause an application message to be duplicated or crash the server, resulting in integrity impact and denial of service.
What should be done if an immediate upgrade is not possible?
Disable draft75 and draft76 WebSocket protocol support, or ensure allow_drafts is not enabled. Upgrading websocket-driver to version 0.9.0 fixes the issue.