npm
CVE-2026-109829
undici vulnerable to cache poisoning and cross-user disclosure via cross-origin redirects
- Severity
- High 7.4
- 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.1% in the next 30 daysHigher than 4% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Over the network · Only under certain conditions · No login needed · No user action needed
- Attacker can
- Read data · Change data
- CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N- Also known as
- GHSA-4w7w-5xrc-9h26
- Sources
- OSV.dev and GitHub
Description
When an originless Agent composes the redirect and cache interceptors as compose(redirect(), cache()) with a shared cache (type: 'shared'), the cache builds its key from the original request URL before the redirect handler changes the origin. The response produced after a redirect is then stored under the original key, even when the redirect crossed to a different origin.
An attacker who controls the target of a redirect from a trusted URL can have their response cached under that trusted URL. A later caller requesting the trusted URL receives the attacker's body from the shared cache without either origin being contacted, allowing persistent cache poisoning. The same key confusion also discloses private data: when an authenticated request returns a private, no-store redirect to a user-specific resource, the final response is stored under the original URL and can be served to a later unauthenticated caller.
Workarounds
Compose the interceptors as compose(cache(), redirect()), use per-origin dispatchers and cache stores, or disable shared caching on redirect-capable requests.
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-109829
- GitHub Advisory Database https://github.com/advisories/GHSA-4w7w-5xrc-9h26