cvelo
P2 · HighCVSS 7.5EPSS 0.8%

ws: Memory exhaustion DoS via unbounded automatic pong responses

  • CVE-2026-140009
  • GHSA-37g9-w4hg-h9qr
  • EUVD-2026-139734

Description

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.

Text from the CVE.org record.

Recommendation

Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • websockets ws

    Affected versionsFixed in
    < 5.2.8none stated
    >= 6.0.0, < 6.2.7none stated
    >= 7.0.0, < 7.5.14none stated
    >= 8.0.0, < 8.23.0none stated
  • wsnpm

    Affected versionsFixed in
    from 8.0.0 to before 8.23.08.23.0
    from 7.0.0 to before 7.5.147.5.14
    from 6.0.0 to before 6.2.76.2.7
    before 5.2.85.2.8

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.