Dec 4, 2026·9 min read·3 visits
An unauthenticated remote attacker can crash Node.js servers using websocket-driver prior to version 0.8.3 by pipelining WebSocket frame data inside the same TCP packet as the HTTP Upgrade handshake headers.
CVE-2026-144303 (GHSA-mxfr-rg9v-vp3c) is a denial-of-service vulnerability affecting the websocket-driver package for Node.js prior to version 0.8.3. When a remote client sends WebSocket frame data concatenated in the same TCP segment as the initial HTTP Upgrade request headers, applications following the documented integration pattern pass the trailing byte buffer to driver.io.write() before calling driver.start(). Because internal protocol parser states and frame reader components are not initialized until driver.start() executes, attempting to parse early frame bytes triggers an unhandled TypeError, terminating the Node.js process.
The websocket-driver library (faye/websocket-driver-node) provides a modular WebSocket protocol state machine for Node.js applications, decoupling protocol parsing from underlying network I/O streams. It supports multiple revisions of the WebSocket specification, including Hixie Draft-75, Hixie Draft-76, and RFC 6455 (HyBi). It serves as a core dependency in higher-level WebSocket abstractions such as faye-websocket and the Faye publish-subscribe messaging system.
In a standard Node.js HTTP server implementation, upgrading an incoming HTTP connection to a WebSocket stream occurs inside the server's upgrade event listener. When the Node.js HTTP parser encounters an Upgrade: websocket request, it parses the HTTP headers and pauses header parsing. Any excess bytes received in the same TCP socket read buffer immediately following the `
header terminator are extracted and passed to theupgradecallback as aBuffernamedhead(orupgradeHead`).
CVE-2026-144303 (tracked as CWE-248: Uncaught Exception) stems from an initialization order flaw during the transition between HTTP header processing and WebSocket frame parsing. The documented integration pattern for websocket-driver instructs developers to instantiate the driver via websocket.http(request) and immediately write the excess head buffer into driver.io.write(head) before invoking driver.start() to transmit the handshake response.
In versions of websocket-driver prior to 0.8.3, feeding frame data into driver.io.write() before calling driver.start() causes the protocol parser to execute before its internal frame reader object (this._reader) is instantiated. This state mismatch throws a synchronous, unhandled TypeError on the Node.js main thread. Unless the host application registers a global uncaughtException handler to intercept fatal runtime errors, the Node.js process terminates immediately, causing a total denial of service for all connected clients.
The root cause of CVE-2026-144303 is an inconsistency in the initial state machine configuration between protocol drafts in websocket-driver. The library uses an internal state property, this._stage, to track the progression of the WebSocket connection and frame parsing lifecycle. A value of -1 designates a pre-handshake state where incoming bytes must be buffered or held prior to connection opening, whereas stage 0 and higher designate active frame header and payload parsing stages.
Prior to version 0.8.3, only the Draft76 protocol handler initialized this._stage = -1 because the Hixie-76 specification requires an 8-byte challenge body immediately following the HTTP request headers to compute the handshake response signature. Conversely, both Hybi (RFC 6455) and Draft75 constructors initialized this._stage = 0 immediately upon object creation. However, the internal setup routine this._open()—which constructs the streaming frame reader (this._reader) and binds internal state callbacks—was deferred until the application explicitly invoked driver.start().
When a compliant client initiates a WebSocket connection, it normally waits to receive the server's HTTP/1.1 101 Switching Protocols response before transmitting WebSocket frames. In that standard sequence, head is a zero-length Buffer. Writing a zero-length buffer to driver.io.write(head) results in a no-op or avoids advancing the parser before driver.start() is invoked.
However, if an adversary purposefully pipelines bytes immediately after the `
delimiter in the initial TCP segment,headcontains non-empty data. When the server executesdriver.io.write(head), the I/O stream forwards the chunk to Hybi.prototype.parse(chunk). Because this._stageis already0, the parser attempts to process the incoming bytes using this._reader, which remains uninitialized (undefined) until this._open()runs insidedriver.start(). Accessing methods or properties on the undefined reader reference throws an uncaught TypeError`.
The vulnerability and its resolution are detailed in commit 66486511c8b90ce6de4ea5b613109562f4cb5900. In the vulnerable version, lib/websocket/driver/base.js executed this._open() inside start() only if this._stage !== -1, while lib/websocket/driver/hybi.js and lib/websocket/driver/draft75.js initialized this._stage = 0 in their constructors.
// VULNERABLE CODE: lib/websocket/driver/hybi.js (prior to 0.8.3)
var Hybi = function(request, url, options) {
Base.apply(this, arguments);
this._extensions = new Extensions({ maxLength: this._maxLength });
// BUG: _stage is initialized to 0 before start() or _open() has run
this._stage = 0;
this._masking = this._options.masking;
this._protocols = this._options.protocols || [];
this._requireMasking = this._options.requireMasking;
// Note: this._reader is NOT initialized here; it is created later in _open()
};When driver.io.write(head) was called prior to driver.start(), Hybi.prototype.parse executed while this._stage was 0, without verifying whether the handshake had started or whether this._reader existed. The patch resolves this across all server-side protocol drivers (Base, Draft75, Draft76, and Hybi) by standardizing pre-handshake state management around this._stage = -1 and this._started = true.
// PATCHED CODE: lib/websocket/driver/base.js (v0.8.3)
start: function() {
if (this.readyState !== -1) return false;
// ... handshake validation ...
this._started = true;
this._write(response);
// Removed conditional `if (this._stage !== -1) this._open();`
// Subclasses now explicitly manage stage transition and _open() in start()
return true;
},In lib/websocket/driver/hybi.js, the constructor now sets this._stage = -1. Furthermore, Hybi.prototype.start was added to transition this._stage to 0, invoke this._open() to initialize this._reader, and flush any pending state by calling this.parse(Buffer.alloc(0)). As an additional guard, Hybi.prototype.parse checks if (!this._reader) return; at entry.
// PATCHED CODE: lib/websocket/driver/hybi.js (v0.8.3)
var Hybi = function(request, url, options) {
Base.apply(this, arguments);
this._extensions = new Extensions({ maxLength: this._maxLength });
// FIX: Start in stage -1 until driver.start() is called
this._stage = -1;
// ...
};
var instance = {
// ...
start: function() {
if (!Base.prototype.start.call(this)) return false;
this._stage = 0;
this._open();
this.parse(Buffer.alloc(0));
return true;
},
parse: function(chunk) {
if (!this._reader) return;
// ...Similarly, Draft75 and Draft76 were unified so that Draft75 initializes this._stage = -1 and this._body = []. Any bytes passed to parse() while in stage -1 are pushed into this._body, and _handleBufferedBody() checks if (!this._started) return; before transitioning this._stage = 0, calling this._open(), and parsing the buffered array. Meanwhile, Client (which inherits from Hybi but initiates outbound connections and awaits an HTTP response via HttpParser) explicitly sets this._stage = 0 in its constructor. This fix completely eliminates pre-start parser execution across all supported protocol variations.
Exploiting CVE-2026-144303 requires only network access to a Node.js HTTP server that handles WebSocket connections using websocket-driver (either directly or through a wrapper library like faye-websocket) where driver.io.write(head) is called before driver.start(). No authentication, session state, or prior knowledge of application logic is necessary if the WebSocket upgrade listener attaches before application-level authentication or passes head immediately upon upgrade.
To trigger the crash, an attacker opens a raw TCP connection to the target port and transmits a single TCP payload containing both a valid HTTP WebSocket Upgrade request and at least one trailing byte representing pipelined frame data after the `
` sequence.
GET / HTTP/1.1
Host: target.example.com
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==
Sec-WebSocket-Version: 13
helloBecause the trailing bytes (\x81\x05hello, a masked or unmasked RFC 6455 text frame) arrive in the same socket read operation as the HTTP request headers, Node.js's internal http_parser stops consuming bytes at the end of the HTTP headers (`
) and slices the remaining buffer (\x81\x05hello) into the headargument of theserver.on('upgrade', (request, socket, head) => ...)` event.
> [!NOTE]
> In the README of websocket-driver, the standard server setup example demonstrates passing body (the head buffer) directly to driver.io.write(body) immediately after instantiating the driver and registering stream pipes, before driver.start() is invoked. Any application copied from or modeled after this pattern is vulnerable.
When the server executes driver.io.write(head), the 7-byte buffer is pushed into the driver's input stream and synchronously triggers driver.parse(chunk). Because driver.start() has not yet executed, the uninitialized parser throws a TypeError, terminating the Node.js event loop.
CVE-2026-144303 is rated High severity with a CVSS v3.1 score of 7.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H). The Attack Vector is Network (AV:N) and Attack Complexity is Low (AC:L), as any client capable of establishing a TCP connection to the HTTP server can send a single crafted packet without timing constraints or race conditions. Neither privileges (PR:N) nor user interaction (UI:N) are required.
The impact is strictly confined to system Availability (A:H), with no direct impact on Confidentiality (C:N) or Integrity (I:N). Because Node.js operates on a single-threaded event loop model, an uncaught synchronous exception terminates the entire OS worker process immediately. All active HTTP requests, concurrent WebSocket sessions, and in-flight asynchronous operations handled by that process are abruptly dropped.
In deployment environments lacking an external process supervisor (such as systemd, PM2, or Kubernetes liveness/restart controllers), a single TCP packet results in a permanent outage until an operator manually restarts the service. Even when automatic process restarts are configured, an attacker can repeatedly send the crafted 150-byte TCP payload at a low packet rate to keep the service in a continuous crash loop (CrashLoopBackOff), exhausting host CPU resources during startup and denying service to all legitimate users.
As of December 2026, the Exploit Prediction Scoring System (EPSS) assigns CVE-2026-144303 a score of 0.00921 (0.92%, 61.52nd percentile), and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. However, the trivial nature of the single-packet payload makes vulnerable internet-facing Node.js services highly susceptible to availability disruption.
The primary remediation is to upgrade websocket-driver to version 0.8.3 or later. Version 0.8.3 contains commit 66486511c8b90ce6de4ea5b613109562f4cb5900, which ensures all WebSocket protocol handlers start in pre-handshake stage -1 and safely defer or ignore frame parsing until driver.start() initializes the underlying frame reader.
# Upgrade websocket-driver directly
npm install websocket-driver@^0.8.3
# Verify installed versions across the dependency tree
npm ls websocket-driverBecause websocket-driver is frequently installed as a transitive dependency of packages like faye-websocket, faye, or development tools (such as webpack-dev-server or sockjs-node), operators should inspect package-lock.json or yarn.lock using npm ls websocket-driver. If an upstream package pins an older range, use package manager overrides (overrides in package.json for npm, or resolutions for Yarn) to force resolution to >=0.8.3.
If an immediate dependency upgrade is not possible, developers can implement an application-level workaround in the Node.js upgrade event handler. Reordering the initialization sequence so that driver.start() is called prior to passing the head buffer to driver.io.write(head) ensures that this._open() and this._reader are fully initialized before any pipelined bytes are parsed.
server.on('upgrade', function(request, socket, head) {
if (!websocket.isWebSocket(request)) return;
var driver = websocket.http(request);
driver.io.pipe(socket).pipe(driver.io);
// WORKAROUND: Call driver.start() BEFORE writing the head buffer
driver.start();
if (head && head.length > 0) {
driver.io.write(head);
}
});CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H| Product | Affected Versions | Fixed Version |
|---|---|---|
websocket-driver Faye / James Coglan | < 0.8.3 | 0.8.3 |
| Attribute | Detail |
|---|---|
| CVE ID | CVE-2026-144303 (GHSA-mxfr-rg9v-vp3c) |
| Weakness Class | CWE-248: Uncaught Exception |
| CVSS v3.1 Score | 7.5 High (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) |
| EPSS Score | 0.92% (61.52nd Percentile) |
| Attack Vector | Network (Unauthenticated HTTP Upgrade with Pipelined Frame Data) |
| Primary Impact | Denial of Service (Node.js Process Crash) |
| Affected Versions | websocket-driver < 0.8.3 |
| CISA KEV Status | Not Listed |
An exception is thrown during execution that is not caught or handled by any enclosing try/catch block or error handler, causing unexpected termination of the process or system crash.
A denial-of-service vulnerability exists in the Istio Pilot control plane (istiod) when operating in ambient mesh mode. In versions 1.30.0 through 1.30.8, 1.31.0 through 1.31.4, and 1.32.0, creating a ServiceEntry with DNS or DNS_ROUND_ROBIN resolution attached to a waypoint proxy that resolves to zero endpoints causes buildCluster to return a nil pointer. The waypoint inbound cluster generation routine subsequently dereferences this nil pointer without validation, triggering an unhandled Go runtime panic that places all istiod replicas into a continuous crash-loop.
CVE-2026-137197 (GHSA-w3gc-668g-rf8f) is an OS command injection vulnerability (CWE-78) in the Node.js cross-spawn library affecting versions prior to 6.0.8 and 7.1.1 on Microsoft Windows. The flaw stems from parsing and resolution discrepancies between how cross-spawn identifies batch scripts (.bat and .cmd) and how Windows cmd.exe resolves target files. When a command string contains embedded double quotes, token delimiters, trailing whitespace, or relies on a child-specific PATHEXT environment variable, cross-spawn fails to detect that the target is a batch script and omits cmd.exe metacharacter escaping on user-supplied arguments, enabling arbitrary OS command execution.
An input validation flaw in github.com/Luzifer/ots prior to version 1.21.8 allows unauthenticated remote attackers to bypass configured secret expiration policies. By supplying an expire=0 query parameter during secret creation, clients force the server to store secrets without a time-to-live (TTL) in both Redis and in-memory storage backends. This invalidates administrative data retention policies and permits unbounded storage consumption via unread secrets.
A stored Cross-Site Scripting (XSS) vulnerability exists in Silverstripe Framework versions prior to 6.2.13 within the HTML sanitisation engine (SilverStripe\Core\XssSanitiser). The sanitiser fails to strip or normalize non-printable ASCII C0 control characters and DEL bytes prior to evaluating URI attributes against scheme-blocking regular expressions. Because modern web browsers ignore these control bytes according to the WHATWG URL Standard, an authenticated CMS author can embed control bytes before or within a javascript: URI to bypass detection and execute arbitrary JavaScript in the browser context of users viewing the rendered content.
CVE-2026-74871 (also tracked as GHSA-vxf9-vwp6-2w43 and PYSEC-2026-3976) is a cryptographic composition vulnerability in the Python file encryption library openssl_encrypt affecting versions prior to 1.4.6. When generating keys under sequential XOR composition mode (format versions 8 and 10), the key derivation routine redundantly appends the final chain output to an accumulator that already contains the normalized output of the final derivation stage. Because bitwise XOR is self-inverting (A XOR A = 0), the final stage cancels itself out completely. When a single memory-hard key derivation function (such as Argon2id or Scrypt) is configured without preceding hash stages, the derived key collapses to an unhardened SHA-256(password || salt) digest, allowing offline password cracking at raw SHA-256 throughput.
CVE-2026-142637 (GHSA-ch34-gjmh-c4hp) is a query logic injection vulnerability (CWE-943) in the Laravel framework prior to versions 12.73.0 and 13.43.0. When fluent database validation rules such as Rule::exists() or Rule::unique() are scoped using the scalar where() method, the framework serializes the rule object into its legacy comma-delimited string format and subsequently reparses it. During reparsing, the database presence verifier evaluates specific reserved tokens—'NULL', 'NOT_NULL', and values prefixed with '!'—as SQL predicates rather than literal values. If an application passes untrusted user input into a fluent where() scope, an attacker can supply these sentinel tokens to alter the SQL evaluation logic and bypass multi-tenant isolation or ownership validation.