CVE-2026-144303
### 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) d
Properties
- Severity
- high
- Summary
- websocket-driver: Server crash triggered by client sending message data in the same TCP chunk as request headers
- Nvd fetched at
- 2026-12-06T11:16:09.893609+00:00
- Epss score
- 0.00993
- Cvss severity
- HIGH
- Cvss score
- 7.5
- Retrieved at
- 2026-12-06T11:17:52+00:00
- Ghsa published
- 2026-12-04T21:54:48Z
- Source url
- https://github.com/advisories/GHSA-mxfr-rg9v-vp3c
- Ghsa updated
- 2026-12-04T21:54:49Z
- Ghsa id
- GHSA-mxfr-rg9v-vp3c
- Last source
- FIRST EPSS
- Score
- 7.5
- Cvss version
- 3.1
- Cve id
- CVE-2026-144303
- Cvss vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- First seen by Signal
- 2026-12-03T18:53:57+00:00
- Name
- CVE-2026-144303
- Is ghsa only
- false
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Related Entities (3)
AFFECTS (1)
HAS_WEAKNESS (1)
VULNERABLE_TO (1)
Related research
Explore deeper with Ninja Signal's threat intelligence graph