Intel

AIKIDO-2026-138234

ws is vulnerable to Denial of Service (DoS)

CVE-2026-62389Published Jul 22, 2026
July 22, 2026

75

CVE Score

High

Denial of Service (DoS)

Are you affected? Scan for Free

TL;DR

The WebSocket receiver in lib/receiver.js bounds retained message parts using the maxFragments and maxBufferedChunks options, but their default values were set very high. A remote, unauthenticated peer can send a text frame with FIN=0 followed by many tiny incomplete continuation frames, causing each fragment to be retained as a separate Buffer and pinning large amounts of heap while the message stays under the payload limit and never completes. This lets an attacker exhaust process memory and crash a default-configured server or client using only modest network traffic. The fix substantially lowers the default maxFragments and maxBufferedChunks values so the fragment guard terminates abusive connections much sooner.

How do I fix this?

Upgrade the ws library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Package

Versions

5.2.5 - 5.2.5

Fixed in 5.2.6

6.2.4 - 6.2.4

Fixed in 6.2.5

7.5.11 - 7.5.11

Fixed in 7.5.12

8.21.0 - 8.21.0

Fixed in 8.21.1

Background info

ws is vulnerable to Denial of Service (DoS) in versions 5.2.5 - 5.2.5, 6.2.4 - 6.2.4, 7.5.11 - 7.5.11 and 8.21.0 - 8.21.0.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea