CVE-2026-140003: websocket-driver: Denial of service triggered by malformed Sec-WebSocket-Key1 header

Published Nov 30, 2026
·
Updated

websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.0, the draft76 handshake parser derives integers from Sec-WebSocket-Key1 and Sec-WebSocket-Key2 by extracting digits and dividing by the number of spaces, then writes the results as unsigned 32-bit values. An unauthenticated remote client can supply a key whose derived value exceeds 32 bits, causing a Buffer range exception that crashes the process on Node.js v22 and below. This issue is fixed in version 0.8.0.

Affected Software

1 affected component
npm/websocket-driver<0.8.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 0.8.0

Event History

Nov 30, 2026
CVE Published
via MITRE·09:26 PM
Data Sourced
via MITRE·09:26 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed to this denial of service?

Deployments using websocket-driver before 0.8.0 are affected if they can receive a draft76 WebSocket handshake from a remote client. The crash behavior described applies to processes running on Node.js v22 and below.

2

What does an attacker need to do to trigger the issue?

An unauthenticated remote client can send a malformed Sec-WebSocket-Key1 or Sec-WebSocket-Key2 header whose digit-derived value exceeds the unsigned 32-bit range. No privileges or user interaction are required.

3

What is the impact if exploitation succeeds?

The malformed handshake causes a Buffer range exception, which crashes the Node.js process. The reported impact is denial of service, with no confidentiality or integrity impact stated.

4

How can this be remediated?

Upgrade websocket-driver to version 0.8.0, which fixes the issue.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203