Skip to main content
Vulnerability Database/CVE-2026-109829

CVE-2026-109829: Node.js Undici Information Disclosure Flaw

CVE-2026-109829 is an information disclosure vulnerability in Node.js Undici HTTP client library affecting cache handling after cross-origin redirects. This article covers technical details, affected versions, and mitigation strategies.

Published:

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-109829 Overview

CVE-2026-109829 is a cache key confusion vulnerability in undici, the HTTP client library used by Node.js. The flaw affects versions 7.0.0 through 7.30.0 and 8.0.0 through 8.12.1. When an originless Agent composes the redirect and cache interceptors in that order with a shared cache store, the library builds the cache key from the original request URL before the redirect handler changes the origin. Responses produced after a cross-origin redirect are stored under the original key. The weakness is categorized under [CWE-346: Origin Validation Error].

Critical Impact

Attackers who control a redirect target can poison the shared cache under a trusted URL, and private user-specific responses can leak to later unauthenticated callers.

Affected Products

  • nodejs/undici versions 7.0.0 through 7.30.0
  • nodejs/undici versions 8.0.0 through 8.12.1
  • Node.js applications using an originless Agent with redirect-then-cache interceptor composition and a shared cache store

Discovery Timeline

  • 2026-10-15 - CVE-2026-109829 published to the National Vulnerability Database (NVD)
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-109829

Vulnerability Analysis

The vulnerability occurs in the interceptor pipeline of undici's originless Agent. When the redirect interceptor sits above the cache interceptor in the dispatch chain, both operations share a single cache store. The cache interceptor derives its lookup and storage key from the inbound request URL. The redirect interceptor then rewrites the request origin to follow a 3xx response. The response ultimately returned to the cache layer belongs to the redirected origin, but the cache has already fixed its key to the original URL.

Two distinct outcomes follow. First, an attacker controlling the redirect destination can serve arbitrary content that gets persisted under the trusted original URL, enabling persistent cache poisoning for later callers. Second, a cross-origin redirect to a user-specific authenticated resource can place private, non-stored content under the original key and expose it to unauthenticated consumers of the same cache.

Root Cause

The root cause is a missing origin validation step between the cache key computation and the response storage decision. The cache interceptor does not verify that the producing origin matches the origin used to derive the key. It also does not preserve per-hop Cache-Control directives from redirect responses, so responses marked private or non-cacheable can still be stored under the original key.

Attack Vector

Exploitation requires that the target application configure an originless Agent, enable a shared cache store, and compose the redirect interceptor before the cache interceptor. An attacker then induces a request to a trusted URL that redirects to an attacker-controlled or user-specific endpoint. The cross-origin response is stored under the trusted URL key and returned to subsequent callers. The specific exploitation flow is described in the GitHub Security Advisory GHSA-4w7w-5xrc-9h26.

Detection Methods for CVE-2026-109829

Indicators of Compromise

  • Cached HTTP responses whose body or headers reference a different origin than the request URL used as the cache key
  • Repeated 3xx responses from trusted upstream URLs resolving to unexpected external hosts
  • Unauthenticated clients receiving responses containing user-specific tokens, cookies, or personal data

Detection Strategies

  • Audit application code for use of undici.Agent constructed without a fixed origin, combined with interceptors.redirect composed before interceptors.cache
  • Inventory running Node.js services for undici versions in the ranges 7.0.0-7.30.0 and 8.0.0-8.12.1
  • Review proxy and egress logs for cross-origin redirect chains that terminate at untrusted domains

Monitoring Recommendations

  • Alert on outbound HTTP redirects where the final response origin does not match the request's intended origin allowlist
  • Monitor cache hit telemetry for anomalous responses served under high-trust URLs
  • Capture Node.js dependency manifests during CI/CD and flag vulnerable undici versions before deployment

How to Mitigate CVE-2026-109829

Immediate Actions Required

  • Upgrade undici to version 7.30.1 or 8.12.2 or later
  • Rebuild and redeploy any Node.js container images and serverless bundles that pin a vulnerable undici version
  • Flush shared cache stores that may already contain poisoned entries
  • Audit all Agent configurations for the originless, shared-cache, redirect-then-cache pattern

Patch Information

The fix is available in undici7.30.1 and 8.12.2. The patched versions verify that the producing origin still matches the cache key before storage and preserve each redirect hop's Cache-Control policy. Patch details are documented in the OpenJS Foundation Security Advisories and the GitHub Security Advisory GHSA-4w7w-5xrc-9h26.

Workarounds

  • Compose the cache interceptor before the redirect interceptor in the Agent pipeline
  • Use per-origin dispatchers and per-origin cache stores instead of a single shared store
  • Disable shared caching on any request path that follows HTTP redirects
  • Replace the originless Agent with origin-bound Pool or Client instances where feasible
bash
# Configuration example
npm install undici@^8.12.2
# or for the 7.x line
npm install undici@^7.30.1
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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.