All vulnerabilities

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
Weakness
Origin validation error (CWE-346)CWE-524
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.

From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Workarounds

Compose the interceptors as compose(cache(), redirect()), use per-origin dispatchers and cache stores, or disable shared caching on redirect-capable requests.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
undicinpm · osv:npm:undici
  • From 7.0.0 before 7.30.1
  • From 8.0.0 before 8.12.2

About undici

Weekly downloads (npm)
355,862,465npm, 22 Nov 2026

References