CVE-2026-1526
March 12, 2026
The undici WebSocket client is vulnerable to a denial-of-service attack via unbounded memory consumption during permessage-deflate decompression. When a WebSocket connection negotiates the permessage-deflate extension, the client decompresses incoming compressed frames without enforcing any limit on the decompressed data size. A malicious WebSocket server can send a small compressed frame (a "decompression bomb") that expands to an extremely large size in memory, causing the Node.js process to exhaust available memory and crash or become unresponsive.
The vulnerability exists in the PerMessageDeflate.decompress() method, which accumulates all decompressed chunks in memory and concatenates them into a single Buffer without checking whether the total size exceeds a safe threshold.
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) >=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) >=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.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)
Improper Handling of Highly Compressed Data (Data Amplification)
EPSS
Base Score:
0.02