CVE-2026-140009: ws: Memory exhaustion DoS via unbounded automatic pong responses

Published Nov 30, 2026
·
Updated

ws is an open source WebSocket client and server for Node.js. Prior to 5.2.8, 6.2.7, 7.5.14, and 8.23.0, a malicious WebSocket peer can send Ping frames while stopping reads, causing ws to generate and buffer automatic Pong responses without a pending-response bound. The queued Pong frames can exhaust process memory and terminate the application; disabling autoPong where available or combining rate limiting with heartbeats mitigates the issue. This issue is fixed in versions 5.2.8, 6.2.7, 7.5.14, and 8.23.0.

Affected Software

1 affected component
npm/ws<5.2.8, <6.2.7, <7.5.14, <8.23.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade npm/ws to a version that resolves this vulnerability.

    Fixed in 5.2.8
  2. Upgrade

    Upgrade npm/ws to a version that resolves this vulnerability.

    Fixed in 6.2.7
  3. Upgrade

    Upgrade npm/ws to a version that resolves this vulnerability.

    Fixed in 7.5.14
  4. Upgrade

    Upgrade npm/ws to a version that resolves this vulnerability.

    Fixed in 8.23.0
  5. Configuration

    Disable autoPong where available

    ws autoPong = false
  6. Compensating control

    Combine rate limiting with heartbeats to mitigate unbounded automatic Pong responses

Event History

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

Frequently Asked Questions

1

Which deployments are exposed to this denial-of-service condition?

Applications using ws versions earlier than 5.2.8, 6.2.7, 7.5.14, or 8.23.0 are affected when a malicious WebSocket peer can connect and send Ping frames. The issue can exhaust the Node.js process memory and terminate the application.

2

What must an attacker do to trigger the issue?

The attacker needs to act as a WebSocket peer and repeatedly send Ping frames while no longer reading the server or client's responses. This causes automatically generated Pong frames to accumulate in the output buffer without a pending-response limit.

3

What can be done if upgrading is not immediately possible?

Disable automatic Pong handling where that option is available. Otherwise, use rate limiting together with heartbeats to mitigate repeated Ping-based buffering.

4

Which ws releases contain the fix?

The issue is fixed in ws 5.2.8, 6.2.7, 7.5.14, and 8.23.0.

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