CVE-2026-87029
undici vulnerable to Denial of Service via unhandled exception in the decompress interceptor
Description
Impact
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. If the application keeps the process alive with a global uncaught-exception handler, the affected request instead hangs until the body timeout.
Patches
Upgrade to undici 7.30.1 or 8.12.2.
Workarounds
Avoid composing the decompress interceptor with a response handler that throws during response processing (such as dump with a maxSize) until upgrading.
Affected Maven artifacts (2)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.mvnpm » undicivia npm undici | >= 7.15.0, < 7.30.1>= 8.0.0, < 8.12.2 | 7.30.1, 8.12.2 |
| org.webjars.npm » undicivia npm undici | >= 7.15.0, < 7.30.1>= 8.0.0, < 8.12.2 | 7.30.1, 8.12.2 |
Blast radius
13% of the dependent artifacts (2) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 56 |
| 2 hops | 76 |
| 3 hops | 69 |
Most used dependents
- org.mvnpm.at.scalar » workspace-store8 usages
- org.mvnpm.at.scalar » openapi-parser7 usages
- org.mvnpm.at.scalar » json-magic7 usages
- org.mvnpm.at.scalar » oas-utils5 usages
- org.mvnpm » miniflare2 usages
- org.mvnpm.at.scalar » api-client2 usages
- org.mvnpm.at.scalar » blocks2 usages
- org.mvnpm.at.scalar » sidebar2 usages
- org.mvnpm.at.scalar » openapi-to-markdown2 usages
- org.mvnpm » wrangler1 usages
- org.mvnpm.at.scalar » agent-chat1 usages
- org.mvnpm » guarded-fetch1 usages
- org.mvnpm.at.earendil-works » pi-coding-agent0 usages
- org.mvnpm.at.scalar » api-reference0 usages
- org.mvnpm » just-bash0 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
Other ecosystems
Also affects npm (1 package) . See all on OSV
References
| Advisory | NVD CVE-2026-87029 | nvd.nist.gov |
| Package | nodejs/undici | github.com |
| Web | nodejs/undici advisory GHSA-55wc-3pg8-jfw6 | github.com |
| Web | nodejs/undici commit 63cba77 | github.com |
| Web | nodejs/undici commit f851f31 | github.com |
| Web | security-advisories.html | cna.openjsf.org |
| Web | nodejs/undici release v7.30.1 | github.com |
| Web | nodejs/undici release v8.12.2 | github.com |
