CVE-2026-144303: CVE-2026-144303: Denial of Service via Uncaught Exception in Node.js websocket-driver
CVE-2026-144303: Denial of Service via Uncaught Exception in Node.js websocket-driver Vulnerability ID: CVE-2026-144303 CVSS Score: 7.5 Published: 2026-12-04 CVE-2026-144303 (GHSA-mxfr-rg9v-vp3c) is a denial-of-serv
CVE-2026-144303: Denial of Service via Uncaught Exception in Node.js websocket-driver
Vulnerability ID: CVE-2026-144303
CVSS Score: 7.5
Published: 2026-12-04
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.
TL;DR
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.
Technical Details
- 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
Affected Systems
- websocket-driver (npm package)
- faye/websocket-driver-node
-
websocket-driver: < 0.8.3 (Fixed in:
0.8.3)
Code Analysis
Commit: 6648651
Ensure protocol drivers initialize in stage -1 and do not attempt to parse frame data prior to driver.start() being called.
diff --git a/lib/websocket/driver/base.js b/lib/websocket/driver/base.js
index c8d6... 100644
--- a/lib/websocket/driver/base.js
+++ b/lib/websocket/driver/base.js
@@ -98,8 +98,8 @@ var instance = {
return this._failHandshake(error);
}
+ this._started = true;
this._write(response);
- if (this._stage !== -1) this._open();
return true;
},
diff --git a/lib/websocket/driver/hybi.js b/lib/websocket/driver/hybi.js
index 455f... 100644
--- a/lib/websocket/driver/hybi.js
+++ b/lib/websocket/driver/hybi.js
@@ -12,7 +12,7 @@ var Hybi = function(request, url, options) {
Base.apply(this, arguments);
this._extensions = new Extensions({ maxLength: this._maxLength });
- this._stage = 0;
+ this._stage = -1;
this._masking = this._options.masking;
this._protocols = this._options.protocols || [];
this._requireMasking = this._options.requireMasking;
@@ -102,6 +102,14 @@ var instance = {
return true;
},
+ 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;
Mitigation Strategies
- Upgrade the websocket-driver npm package to version 0.8.3 or later across all direct and transitive dependency trees.
- Modify Node.js HTTP server upgrade event handlers to invoke driver.start() before passing the upgrade head buffer to driver.io.write().
- Use package.json overrides or resolutions to enforce websocket-driver >= 0.8.3 when consumed via transitive dependencies such as faye-websocket.
Remediation Steps:
- Run
npm ls websocket-driverto identify all direct and transitive instances of websocket-driver in the project. - Update the package by running
npm install websocket-driver@^0.8.3ornpm update websocket-driver. - If transitive dependencies lock older versions, add
"overrides": { "websocket-driver": "^0.8.3" }to package.json and regenerate package-lock.json. - Audit custom HTTP
upgradeevent handlers to verifydriver.start()executes prior todriver.io.write(head).
References
- GitHub Security Advisory: GHSA-mxfr-rg9v-vp3c
- Fix Commit 66486511c8b90ce6de4ea5b613109562f4cb5900
- websocket-driver v0.8.3 Release
- NVD Entry for CVE-2026-144303
- CVE.org Record: CVE-2026-144303
- CVE List V5 JSON Record: CVE-2026-144303
Read the full report for CVE-2026-144303 on our website for more details including interactive diagrams and full exploit analysis.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β full credit and traffic to the original publisher.