Every CVESearch/Get API key

CVE-2026-140003

websocket-driver: Denial of service triggered by malformed Sec-WebSocket-Key1 header

Explain with AI
ChatGPTClaudeGoogle AI
Severity
7.5High
Network attack, no privileges, no user interactionCVSS 3.1, CVE List
Exploitation
None reported
1 exploit-related link
Exploit chance
0.62% in 30 days
Percentile51st
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, the draft76 handshake parser derives integers from Sec-WebSocket-Key1 and Sec-WebSocket-Key2 by extracting digits and dividing by the number of spaces, then writes the results as unsigned 32-bit values. An unauthenticated remote client can supply a key whose derived value exceeds 32 bits, causing a Buffer range exception that crashes the process on Node.js v22 and below. 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
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Exploit chance over time

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

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-140003PoC in GitHub2026-12-02

Sources

CVE List Score usedCVSS 3.17.5

websocket-driver: Denial of service triggered by malformed Sec-WebSocket-Key1 header

websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.0, the draft76 handshake parser derives integers from Sec-WebSocket-Key1 and Sec-WebSocket-Key2 by extracting digits and dividing by the number of spaces, then writes the results as unsigned 32-bit values. An unauthenticated remote client can supply a key whose derived value exceeds 32 bits, causing a Buffer range exception that crashes the process on Node.js v22 and below. This issue is fixed in version 0.8.0.

Record
CVE-2026-140003
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-248
Updated
2026-12-03
EUVDEUVD-2026-139726CVSS 3.17.5

websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.0, the draft76 handshake parser derives integers from Sec-WebSocket-Key1 and Sec-WebSocket-Key2 by extracting digits and dividing by the number of spaces, then writes the results as unsigned 32-bit values. An unauthenticated remote client can supply a key whose derived value exceeds 32 bits, causing a Buffer range exception that crashes the process on Node.js v22 and below. This issue is fixed in version 0.8.0.

Record
EUVD-2026-139726
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-12-03
GitHub AdvisoriesGHSA-c4gv-fww2-jp3rCVSS 3.17.5

websocket-driver: Denial of service triggered by malformed Sec-WebSocket-Key1 header

Summary

An unauthenticated remote client can trigger an instant crash and denial of service by sending a WebSocket draft76 handshake with specially crafted headers.

Details

The websocket-driver library supports earlier versions of the WebSocket protocol from before the RFC was standardised, particularly the draft75 and draft76 versions. The draft76 version's handshake involves the client sending two headers named Sec-WebSocket-Key1 and Sec-WebSocket-Key2. A value is derived from each of these by extracting digits from them and dividing this value by the number of spaces in the header string. The derived values are each written into a buffer which is then hashed, and this process expects the values to fit inside 32 bits.

If the values are larger than 32 bits, this triggers an exception in Node's Buffer module and this causes the process to crash.

To mitigate this, the driver has been fixed to reject values that are too large, 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)
})

server.listen(8000)

A client can connect and send a set of headers that will pass as a draft76 handshake, with a specially constructed Sec-WebSocket-Key1 header:

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',
    'Sec-WebSocket-Key1: 858 993 4592',
    'Sec-WebSocket-Key2: 1 1',
    '',
    '12345678'
  ].join('\r\n'))
})

This will cause the server to crash on Node.js v22 and below.

Impact

An unauthenticated remote attacker can crash any Node.js process that accepts WebSocket upgrades through by sending a single HTTP request with a draft76 Sec-WebSocket-Key1 header whose derived value exceeds 32 bits in size.

Record
GHSA-c4gv-fww2-jp3r
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-248
Updated
2026-12-01
NVDCVSS 3.17.5

websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.0, the draft76 handshake parser derives integers from Sec-WebSocket-Key1 and Sec-WebSocket-Key2 by extracting digits and dividing by the number of spaces, then writes the results as unsigned 32-bit values. An unauthenticated remote client can supply a key whose derived value exceeds 32 bits, causing a Buffer range exception that crashes the process on Node.js v22 and below. This issue is fixed in version 0.8.0.

Record
CVE-2026-140003
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-248
Updated
2026-12-03
OSVCVSS 3.17.5

websocket-driver: Denial of service triggered by malformed Sec-WebSocket-Key1 header

websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.0, the draft76 handshake parser derives integers from Sec-WebSocket-Key1 and Sec-WebSocket-Key2 by extracting digits and dividing by the number of spaces, then writes the results as unsigned 32-bit values. An unauthenticated remote client can supply a key whose derived value exceeds 32 bits, causing a Buffer range exception that crashes the process on Node.js v22 and below. This issue is fixed in version 0.8.0.

Record
CVE-2026-140003
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-248
Updated
2026-12-01
OSVDEBIAN-CVE-2026-140003CVSS 3.17.5

websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.0, the draft76 handshake parser derives integers from Sec-WebSocket-Key1 and Sec-WebSocket-Key2 by extracting digits and dividing by the number of spaces, then writes the results as unsigned 32-bit values. An unauthenticated remote client can supply a key whose derived value exceeds 32 bits, causing a Buffer range exception that crashes the process on Node.js v22 and below. This issue is fixed in version 0.8.0.

Record
DEBIAN-CVE-2026-140003
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-12-03
Show 6 more recordsShow less
OSVDHI-hrij-zfjk-bz47-i4gtCVSS 3.17.5

websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.0, the draft76 handshake…

websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.0, the draft76 handshake parser derives integers from Sec-WebSocket-Key1 and Sec-WebSocket-Key2 by extracting digits and dividing by the number of spaces, then writes the results as unsigned 32-bit values. An unauthenticated remote client can supply a key whose derived value exceeds 32 bits, causing a Buffer range exception that crashes the process on Node.js v22 and below. This issue is fixed in version 0.8.0.

Record
DHI-hrij-zfjk-bz47-i4gt
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Updated
2026-12-04
OSVGHSA-c4gv-fww2-jp3rCVSS 3.17.5

websocket-driver: Denial of service triggered by malformed Sec-WebSocket-Key1 header

Summary

An unauthenticated remote client can trigger an instant crash and denial of service by sending a WebSocket draft76 handshake with specially crafted headers.

Details

The websocket-driver library supports earlier versions of the WebSocket protocol from before the RFC was standardised, particularly the draft75 and draft76 versions. The draft76 version's handshake involves the client sending two headers named Sec-WebSocket-Key1 and Sec-WebSocket-Key2. A value is derived from each of these by extracting digits from them and dividing this value by the number of spaces in the header string. The derived values are each written into a buffer which is then hashed, and this process expects the values to fit inside 32 bits.

If the values are larger than 32 bits, this triggers an exception in Node's Buffer module and this causes the process to crash.

To mitigate this, the driver has been fixed to reject values that are too large, 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)
})

server.listen(8000)

A client can connect and send a set of headers that will pass as a draft76 handshake, with a specially constructed Sec-WebSocket-Key1 header:

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',
    'Sec-WebSocket-Key1: 858 993 4592',
    'Sec-WebSocket-Key2: 1 1',
    '',
    '12345678'
  ].join('\r\n'))
})

This will cause the server to crash on Node.js v22 and below.

Impact

An unauthenticated remote attacker can crash any Node.js process that accepts WebSocket upgrades through by sending a single HTTP request with a draft76 Sec-WebSocket-Key1 header whose derived value exceeds 32 bits in size.

Record
GHSA-c4gv-fww2-jp3r
CVSS 3.1
7.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness
CWE-248
Updated
2026-12-01
OSVAZL-117508No score

CVE-2026-140003 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, the draft76 handshake parser derives integers from Sec-WebSocket-Key1 and Sec-WebSocket-Key2 by extracting digits and dividing by the number of spaces, then writes the results as unsigned 32-bit values. An unauthenticated remote client can supply a key whose derived value exceeds 32 bits, causing a Buffer range exception that crashes the process on Node.js v22 and below. This issue is fixed in version 0.8.0.

Record
AZL-117508
Updated
2026-12-03
OSVAZL-117644No score

CVE-2026-140003 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, the draft76 handshake parser derives integers from Sec-WebSocket-Key1 and Sec-WebSocket-Key2 by extracting digits and dividing by the number of spaces, then writes the results as unsigned 32-bit values. An unauthenticated remote client can supply a key whose derived value exceeds 32 bits, causing a Buffer range exception that crashes the process on Node.js v22 and below. This issue is fixed in version 0.8.0.

Record
AZL-117644
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 IDsOSV
ReferencesOSV
Published dateEUVD, NVD
Key facts, referencesCVE List
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
Affected packages, referencesOSV
Affected packages, key facts, referencesGitHub Advisories
Other IDs, referencesOSV
Other IDs, published dateEUVD, NVD
First indexedCVE List

Upstream dates may differ.

References

MoveEnter Open