Undici: Malicious WebSocket 64-bit length overflows parser and crashes the client
Package
Affected versions
>= 6.0.0, < 6.24.0
>= 7.0.0, < 7.24.0
Patched versions
6.24.0
7.24.0
Description
Published by the National Vulnerability Database
Mar 12, 2026
Published to the GitHub Advisory Database
Mar 13, 2026
Reviewed
Mar 13, 2026
Impact
A server can reply with a WebSocket frame using the 64-bit length form and an extremely large length. undici's ByteParser overflows internal math, ends up in an invalid state, and throws a fatal TypeError that terminates the process.
Patches
Patched in the undici version v7.24.0 and v6.24.0. Users should upgrade to this version or later.
Workarounds
There are no workarounds.
References