CVE-2026-140005: websocket-driver: Denial of service triggered by client sending a single pong frame
websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.0, pong payloads are used directly as property names in an ordinary JavaScript callback object, allowing inherited Object properties to be selected even when no matching ping callback was registered. An unauthenticated remote peer can send a pong whose payload names a property such as proto or hasOwnProperty, causing the driver to call a non-callback value or an unbound built-in method and crash the process on Node.js v22 and below. This issue is fixed in version 0.8.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
websocket-driverto a version that resolves this vulnerability.Fixed in 0.8.0
Event History
Frequently Asked Questions
Which deployments are exposed to this denial of service?
Deployments using npm/websocket-driver versions before 0.8.0 on Node.js v22 or below are affected. An unauthenticated remote WebSocket peer can trigger the issue.
What does an attacker need to do to crash the process?
The attacker only needs network access to send a single WebSocket pong frame with a payload that names an inherited Object property, such as __proto__ or hasOwnProperty. No authentication or user interaction is required.
Is a registered ping callback required for exploitation?
No. The flaw occurs because pong payloads can select inherited properties even when no matching ping callback was registered, leading the driver to invoke a non-callback value or an unbound built-in method.
What is the remediation?
Upgrade websocket-driver to version 0.8.0, which fixes the issue.