GHSA-55wc-3pg8-jfw6
undici vulnerable to Denial of Service via unhandled exception in the decompress interceptor
Quick fix
GHSA-55wc-3pg8-jfw6 — undici: upgrade to the fixed version with the command below.
npm install undici@7.30.1Details
## 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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://github.com/nodejs/undici/security/advisories/GHSA-55wc-3pg8-jfw6[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2026-87029[ADVISORY]
- https://github.com/nodejs/undici/commit/63cba7712ca012b2603c6aeeb4c72d8692332cd0[WEB]
- https://github.com/nodejs/undici/commit/f851f315db1f2acce0ea668f88d9d0fa61c8420c[WEB]
- https://cna.openjsf.org/security-advisories.html[WEB]
- https://github.com/nodejs/undici[PACKAGE]
- https://github.com/nodejs/undici/releases/tag/v7.30.1[WEB]
- https://github.com/nodejs/undici/releases/tag/v8.12.2[WEB]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:npm/undici"]}'