CVE-2026-140000: websocket-driver: Memory exhaustion triggered by small fragment frames holding long-lived references to TCP reads

Published Nov 30, 2026
·
Updated

websocket-driver is a WebSocket protocol handler with pluggable input and output. Prior to 0.8.2, StreamReader.read() uses Buffer.slice() for small reads, so small fragmented message frames can retain references to much larger TCP input Buffer objects. Before 0.8.1, unfinished fragments can retain source TCP reads until the message completes or reaches maxLength; in 0.8.1, compaction occurs after 1,000,000 fragments but can still retain up to 1,000,000 TCP inputs. An unauthenticated remote client can exploit this retention to cause substantial memory inflation and potentially exhaust server memory. This issue is fixed in version 0.8.2.

Affected Software

1 affected component
npm/websocket-driver<0.8.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade websocket-driver to a version that resolves this vulnerability.

    Fixed in 0.8.2

Event History

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

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Servers using the npm websocket-driver package before version 0.8.2 are affected. The vulnerable behavior is in WebSocket input handling, so a server that accepts WebSocket connections from remote clients is exposed.

2

What does an attacker need to do to exploit it?

An unauthenticated remote client can send small fragmented WebSocket message frames. The fragments cause long-lived references to larger TCP input buffers, inflating memory use until server memory may be exhausted.

3

Does upgrading to 0.8.1 fully resolve the problem?

No. Version 0.8.1 compacts retained data only after 1,000,000 fragments and can still retain up to 1,000,000 TCP inputs. The issue is fixed in version 0.8.2.

4

How can I determine whether I am affected?

Check the installed version of npm/websocket-driver. Versions earlier than 0.8.2 are affected; systems running 0.8.1 still have the residual retention behavior described in the advisory.

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