CVE-2026-62389

high

Description

ws before 8.21.1 contains a memory exhaustion vulnerability in lib/receiver.js where the fragment guard only triggers when fragment count reaches maxFragments, allowing attackers to exhaust memory by sending incomplete fragmented WebSocket messages. Attackers can send a text frame with FIN=0 followed by continuation frames without completing the sequence, causing each fragment to be stored as a separate Buffer object with significant overhead, enabling denial of service through heap exhaustion.

References

https://www.vulncheck.com/advisories/ws-default-maxfragments-allows-memory-exhaustion-dos

https://github.com/websockets/ws/releases/tag/8.21.1

https://github.com/websockets/ws/issues/2331

https://github.com/websockets/ws/commit/f197ac65140920bdcecdab74bfc69c2d7858e55d

Details

Source: Mitre, NVD

Published: 2026-07-15

Updated: 2026-07-15

Risk Information

CVSS v2

Base Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C

Severity: High

CVSS v3

Base Score: 7.5

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Severity: High

CVSS v4

Base Score: 8.7

Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Severity: High