CVE-2026-1526
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.
Scoring
- Severity
- HIGH
- CVSS base score
- 7.5
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS probability
- 1.15%
- CWE
- CWE-409
- Published
- 2026-03-12
- Last modified
- 2026-09-14
Affected products
- undici undici
- undici undici
Weakness type
Related vulnerabilities
- CVE-2025-66471 — urllib3 Streaming API improperly handles highly compressed data
- CVE-2026-22776 — cpp-httplib vulnerable to a denial of service (DOS) using a zip bomb
- CVE-2026-5132 — Unbounded zlib decompression in Calls SDP WebSocket messages
- CVE-2026-15814 — Uploading a crafted image causes excessive memory allocation in the Mattermost Server
- CVE-2026-14298 — Boards archive import endpoint allows resource exhaustion via zip bomb and file size limit bypass in Mattermost
- CVE-2026-10819 — Mattermost Server Denial of Service via Animated GIF Emoji Upload
- CVE-2026-21441 — urllib3 vulnerable to decompression-bomb safeguard bypass when following HTTP redirects (streaming API)
- CVE-2024-7765 — Denial of Service in h2oai/h2o-3