External risk intelligence

websocket-driver message parsing denial of service or message duplication

CVE advisorySeverity: CRITICAL (CVSS 9.1)

CVE-2026-140004

The vulnerability affects a WebSocket protocol handler library. Libraries of this type are commonly integrated into web servers and API gateways to provide real-time communication functionality, which are typically deployed as internet-facing services to facilitate client connectivity.

Halo Surface Signal: 4 out of 5 — likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

This advisory concerns a vulnerability in a WebSocket protocol handler that could allow an unauthenticated remote attacker to cause denial of service or message duplication. The issue stems from how the system parses specific message sequences. While not directly accessing or impacting data, the potential for service interruption warrants attention to confirm if this library is in use.

  • A flaw allows message duplication or server crash.
  • It impacts systems using real-time communication.
  • Confirm relevance and exposure for potential disruption.

Attack Path

How an attacker could exploit the issue

An attacker can exploit this vulnerability by sending a specially crafted sequence of bytes over a legacy WebSocket connection. This can occur without any prior authentication, and it targets the message parsing logic within the websocket-driver library. Successfully triggering the vulnerability can lead to unexpected message duplication or a denial-of-service condition by crashing the server process.

  • Unauthenticated remote client entry.
  • Crafted byte sequence to parser.
  • Message duplication or server crash.

Live Threat

Current exploitation, exposure, and threat context

This vulnerability could affect the availability and integrity of services using the websocket-driver library. When supported by the advisory, an unauthenticated remote client could send a crafted byte sequence over a legacy WebSocket connection, potentially causing a server process to crash or a message to be emitted twice.

  • Server process crash or message duplication.
  • Malicious input over legacy WebSocket connection.
  • Service disruption and potential data inconsistencies.

Operational Fix

Recommended remediation, mitigation, and detection steps

This vulnerability in a WebSocket protocol handler could impact any application using this library for real-time communication, particularly those exposed externally. The first step is to identify all instances of this technology, confirm their exposure and criticality, and then assign ownership for remediation.

  • Application owners should manage this issue.
  • Verify affected application reachability.
  • Plan remediation based on exposure.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is websocket-driver and where is it used?

websocket-driver is a software library that handles WebSocket protocol communication, providing the necessary tools to process incoming and outgoing data streams. It is typically integrated into web servers, API gateways, and real-time messaging applications to enable persistent connections between a client and a server.

What is the vulnerability in CVE-2026-140004?

This CVE involves a flaw in how the library handles legacy message parsing, specifically classified as CWE-248 (Uncaught Exception) and CWE-456 (On-the-fly Decoding Error). Essentially, the software fails to properly process a specific, malformed byte sequence, leading it to either emit the same message twice or encounter a critical error that shuts down the server process.

How can an attacker trigger this vulnerability?

An unauthenticated attacker triggers this by sending a specially crafted byte sequence to a server that uses a legacy WebSocket connection (specifically draft75 or draft76). It is important to note that this bug is not triggered by standard, modern WebSocket traffic, but rather by inputs specifically designed to exploit the weaknesses in the library's older message parsing logic.

Is my system at risk for CVE-2026-140004?

Halo Surface Signal indicates this vulnerability is likely relevant if you run services using this library that are internet-facing, as these are typically configured to allow the external client connectivity required to initiate the legacy WebSocket handshake and send the malicious byte sequence.

What should I do if my applications use websocket-driver?

Your first step is to audit your software stack to identify every application utilizing versions of websocket-driver prior to 0.8.0. Once identified, prioritize these systems for an update to version 0.8.0 or later, which contains the fix for the parsing logic flaw, to prevent potential service crashes or message duplication.

References