Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-87029 Overview
CVE-2026-87029 is a denial of service vulnerability in undici, the HTTP client library bundled with Node.js. The flaw affects undici versions 7.15.0 through 7.30.0 and 8.0.0 through 8.12.1. The decompress interceptor forwards decompressed response data to downstream handlers from zlib stream event callbacks without catching exceptions those callbacks throw. When a downstream handler such as the built-in dump interceptor throws asynchronously, the exception escapes as uncaught and terminates the Node.js process. A malicious HTTP server can trigger the crash by returning a tiny compressed body that expands beyond the configured limit.
Critical Impact
Any Node.js client composing the decompress interceptor with a throwing response handler can be crashed remotely by a single small HTTP response.
Affected Products
- nodejs/undici 7.15.0 through 7.30.0
- nodejs/undici 8.0.0 through 8.12.1
- Node.js applications and services depending on the affected undici releases
Discovery Timeline
- 2026-10-15 - CVE-2026-87029 published to NVD
- 2026-10-19 - Last updated in NVD database
Technical Details for CVE-2026-87029
Vulnerability Analysis
The vulnerability is classified as an uncaught exception flaw [CWE-248] leading to denial of service. The undici request engine catches synchronous throws from downstream handlers and converts them into per-request failures. That protection does not extend to exceptions raised from asynchronous callback contexts. When the decompress interceptor pipes decompressed data to the next handler inside a zlib stream event callback, any exception thrown by that handler propagates up through the event loop as an uncaught exception. Node.js terminates the process by default when an uncaught exception reaches the top level.
The built-in dump interceptor is the canonical trigger. Dump throws by design when a response exceeds its configured maximum size, which is a legitimate control that normally fails a single request. In the decompress code path, that throw crashes the entire process rather than the request.
Root Cause
The root cause is missing exception handling around the invocation of downstream handler callbacks within the decompress interceptor's zlib stream event listeners. Exceptions thrown from those listeners bypass the per-request error boundary enforced by the undici dispatch engine.
Attack Vector
An attacker controlling or compromising an HTTP server that an affected client contacts returns a small gzip or deflate compressed body. The compressed payload decompresses to a size greater than the dump interceptor's configured limit. When the client reads the response, the dump handler throws, the exception escapes the zlib callback, and the Node.js process exits. Only the decompressed size matters, so bytes on the wire remain minimal and the attack is cheap to launch at scale.
See the GitHub Security Advisory GHSA-55wc-3pg8-jfw6 for additional technical detail.
Detection Methods for CVE-2026-87029
Indicators of Compromise
- Unexpected Node.js process exits with uncaughtException referencing the decompress interceptor or zlib callback frames in stack traces.
- Outbound HTTP responses carrying Content-Encoding: gzip or deflate with decompression ratios that exceed configured dump limits.
- Repeated client crashes shortly after contacting a specific upstream host.
Detection Strategies
- Inventory Node.js services and enumerate installed undici versions using npm ls undici to identify instances in the vulnerable 7.15.0–7.30.0 and 8.0.0–8.12.1 ranges.
- Audit application code and dependency trees for composition of the decompress interceptor with the dump interceptor or any custom throwing handler.
- Correlate process crash events with preceding outbound HTTP requests to detect server-induced termination patterns.
Monitoring Recommendations
- Monitor process lifecycle metrics for Node.js workloads and alert on abnormal restart rates.
- Capture and centralize uncaughtException logs with full stack traces for post-incident analysis.
- Track outbound HTTP response sizes and decompression ratios from untrusted upstream services.
How to Mitigate CVE-2026-87029
Immediate Actions Required
- Upgrade undici to version 7.30.1, 8.12.2, or later across all Node.js applications and container images.
- Rebuild and redeploy services that pin undici as a direct or transitive dependency after the upgrade.
- Restrict outbound HTTP connections from Node.js workloads to trusted upstream hosts until patching is complete.
Patch Information
The issue is fixed in undici 7.30.1 and 8.12.2. Refer to the OpenJS Foundation Security Advisories and the GitHub Security Advisory GHSA-55wc-3pg8-jfw6 for official release notes and fix commits.
Workarounds
- Avoid composing the decompress interceptor with any response handler that throws during response processing, including the built-in dump interceptor.
- Replace throwing handlers with handlers that signal errors through the request promise rather than synchronous or asynchronous exceptions.
- Install a last-resort process.on('uncaughtException') handler to log and recover, understanding this is a stopgap and not a fix.
# Upgrade undici to a patched release
npm install undici@^8.12.2
# or, for the 7.x line
npm install undici@^7.30.1
# Verify installed version
npm ls undici
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

