CVE-2026-2229
March 12, 2026
ImpactThe undici WebSocket client is vulnerable to a denial-of-service attack due to improper validation of the server_max_window_bits parameter in the permessage-deflate extension. When a WebSocket client connects to a server, it automatically advertises support for permessage-deflate compression. A malicious server can respond with an out-of-range server_max_window_bits value (outside zlib's valid range of 8-15). When the server subsequently sends a compressed frame, the client attempts to create a zlib InflateRaw instance with the invalid windowBits value, causing a synchronous RangeError exception that is not caught, resulting in immediate process termination.
The vulnerability exists because:
* The isValidClientWindowBits() function only validates that the value contains ASCII digits, not that it falls within the valid range 8-15
* The createInflateRaw() call is not wrapped in a try-catch block
* The resulting exception propagates up through the call stack and crashes the Node.js process
Affected Packages
undici (NPM):
Affected version(s) >=0.1.0 <6.24.0Fix Suggestion:
Update to version 6.24.0undici (NPM):
Affected version(s) >=7.0.0 <7.24.0Fix Suggestion:
Update to version 7.24.0undici (NPM):
Affected version(s) >=0.1.0 <6.24.0Fix Suggestion:
Update to version 6.24.0undici (NPM):
Affected version(s) >=7.0.0 <7.24.0Fix Suggestion:
Update to version 7.24.0undici (NPM):
Affected version(s) >=7.0.0 <7.24.0Fix Suggestion:
Update to version 7.24.0undici (NPM):
Affected version(s) >=7.0.0 <7.24.0Fix Suggestion:
Update to version 7.24.0undici (NPM):
Affected version(s) >=0.1.0 <6.24.0Fix Suggestion:
Update to version 6.24.0undici (NPM):
Affected version(s) >=0.1.0 <6.24.0Fix Suggestion:
Update to version 6.24.0undici (NPM):
Affected version(s) >=7.0.0 <7.24.0Fix Suggestion:
Update to version 7.24.0Related Resources (7)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
EPSS
Base Score:
0.19