undici
Affected
- introduced
0, fixed6.24.0(semver)
Fixed versions
6.24.0
Fix
- Fixed version
6.24.0npm install [email protected]
Advisory
Also known as: CVE-2026-1526
Undici has Unbounded Memory Consumption in WebSocket permessage-deflate Decompression
Description
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.
Impact
Patches
Users should upgrade to fixed versions.
Workarounds
No workaround are possible.
High Basis: The source's own band: HIGH
0, fixed 6.24.0 (semver)6.24.0
6.24.0npm install [email protected]7.0.0, fixed 7.24.0 (semver)7.24.0
7.24.0npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0