npm
CVE-2026-87029
undici vulnerable to Denial of Service via unhandled exception in the decompress interceptor
- Severity
- Medium 5.9
- Published
- 27 Oct 2026
- Last changed
- 27 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 7.30.1, 8.12.2
- Exploit chance
- 0.3% in the next 30 daysHigher than 17% of CVEs. EPSS by FIRST, 24 Nov 2026
- Weakness
- Uncaught exception (CWE-248)
- Attack
- Over the network · Only under certain conditions · No login needed · No user action needed
- Attacker can
- Take it down
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H- Also known as
- GHSA-55wc-3pg8-jfw6
- Sources
- OSV.dev and GitHub
Description
undici's decompress interceptor forwards decompressed response data to the downstream handler from zlib stream event callbacks without catching exceptions those callbacks may throw. undici's engine converts a synchronous throw from a downstream handler into a per-request failure, but that protection is not in place when the throw happens asynchronously from a zlib callback. As a result, a downstream handler that throws by design, for example the built-in dump interceptor which throws when a response exceeds its maxSize, escapes as an uncaught exception and terminates the Node.js process.
A malicious or compromised HTTP server can crash any client that composes the decompress interceptor with dump (or another response handler that throws), by returning a small compressed body that decompresses to more than the configured limit. The compressed bytes on the wire are tiny, so only the decompressed size matters.
Workarounds
Avoid composing the decompress interceptor with a response handler that throws during response processing (such as dump with a maxSize) until upgrading.
Affected software
| Software | Affected versions |
|---|---|
undicinpm · osv:npm:undici |
|
About undici
- Weekly downloads (npm)
- 355,862,465npm, 22 Nov 2026
Vulnerabilities in undici
- In our list
- 15
- Published in the last 12 months
- 15
- Critical, last 12 months
- 0
- High, last 12 months
- 6
- Known exploited
- 0
- CVE-2026-116630undici vulnerable to cross-user information disclosure via cross-origin redirect revalidationMedium 5.9 6 Nov 2026
- CVE-2026-120415undici vulnerable to cross-origin credential disclosure via array-of-tuples headers bypassing redirect strippingMedium 5.9 6 Nov 2026
- CVE-2026-120423undici vulnerable to Subresource Integrity bypass via whitespace in integrity metadataMedium 5.9 6 Nov 2026
- CVE-2026-116592undici vulnerable to cache poisoning and cross-user disclosure via intermediate redirect hopsHigh 7.4 6 Nov 2026
- CVE-2026-120222undici vulnerable to Denial of Service via unhandled exception in cache-interceptor response replayMedium 5.9 6 Nov 2026
- CVE-2026-120474undici vulnerable to cross-user cache disclosure via same-origin redirectMedium 6.5 6 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-87029
- GitHub Advisory Database https://github.com/advisories/GHSA-55wc-3pg8-jfw6