Dev.to Security πŸ” Cybersecurity πŸ‘ 0 πŸ“– 3 min read

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:

  1. Run npm ls websocket-driver to identify all direct and transitive instances of websocket-driver in the project.
  2. Update the package by running npm install websocket-driver@^0.8.3 or npm update websocket-driver.
  3. If transitive dependencies lock older versions, add "overrides": { "websocket-driver": "^0.8.3" } to package.json and regenerate package-lock.json.
  4. Audit custom HTTP upgrade event handlers to verify driver.start() executes prior to driver.io.write(head).

References

Read the full report for CVE-2026-144303 on our website for more details including interactive diagrams and full exploit analysis.

πŸ“° Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.