Intel

AIKIDO-2026-138234

ws is vulnerable to Denial of Service (DoS)

Denial of Service (DoS)CVE-2026-62389 Published 5 days ago

75

High Risk

This Affects:

JSws
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
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.

Who does this affect?

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

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.

How to fix this

Upgrade the ws library to the patch version.