undici vulnerable to cache poisoning and cross-user disclosure via intermediate redirect hops.

HighGHSA-mqg3-3v4r-cm32CVE-2026-1165925 Nov · 25 days ago
Source

Does it affect you?

0/5All must holdTicks stay in this browser
Conditions read by Gemini. The sources remain the reference.Maintainer advisory

Timeline

5 Nov
25 daysahead of the GitHub database so far
  1. Published by the maintainer in nodejs/undici5 Nov, 10:27 UTC
  2. Seen by Patchwire +53 min5 Nov, 11:20 UTC
  3. Not in the GitHub database 25 days later30 Nov, 01:25 UTC
undici8.12.47.30.2

Versions of undici

8.x
safe 8.12.4
7.x
safe 7.30.2
AffectedSafe

Packages

Stacks

Related alerts(8)

Same packages
Medium
Exploitable only if · read by Gemini, the source remains the reference
  • Uses undici 7.x before 7.30.2 or 8.x before 8.12.4.
  • An Agent composes interceptors as compose(redirect(), cache()) (not compose(cache(), redirect())).
  • The cache interceptor uses a shared cache (type: 'shared') with MemoryCacheStore or SqliteCacheStore.
  • An attacker can influence a cross-origin redirect on a cached request that is revalidated with a conditional request.
Affected
undici >=7.0.0 <7.30.2 · undici >=8.0.0 <8.12.4
Fixed in
8.12.4 · 7.30.2
ID
GHSA-5rm8-gv32-r954
Open the alert
Medium
Exploitable only if · read by Gemini, the source remains the reference
  • Project uses an undici version before 7.30.2 (7.x) or before 8.12.4 (8.x).
  • Requests are sent through undici's redirect() interceptor with redirects followed.
  • A header-normalizing interceptor such as cache() or deduplicate() is composed outside redirect().
  • Request headers are supplied as an array of [name, value] tuples (e.g. Object.entries(headers)).
  • Requests carry credentials or sensitive headers (Authorization, Cookie, Proxy-Authorization, Host, or configured strip names).
  • Requests can be redirected to a different origin.
Affected
undici >=7.0.0 <7.30.2 · undici >=8.0.0 <8.12.4
Fixed in
8.12.4 · 7.30.2
ID
GHSA-9v6h-8rgp-m69f
Open the alert
Medium
Exploitable only if · read by Gemini, the source remains the reference
  • Uses undici version 7.15.0 or later, before the patched releases 7.30.2 / 8.12.4.
  • Application calls undici's fetch() with an integrity (SRI) option to pin the response.
  • The integrity metadata value contains a digest preceded or surrounded by non-space ASCII whitespace such as a tab, line feed, or carriage return.
  • Attacker can control the response body returned by the server.
Affected
undici >=7.15.0 <7.30.2 · undici >=8.0.0 <8.12.4
Fixed in
8.12.4 · 7.30.2
ID
GHSA-r4pc-4jcp-7pqc
Open the alert
Medium
Exploitable only if · read by Gemini, the source remains the reference
  • Project uses undici at a version before 7.30.2 (7.x) or before 8.12.4 (8.x).
  • The undici cache interceptor is enabled in the client's interceptor composition.
  • The cache interceptor is composed with a downstream handler that throws during response processing, such as the dump interceptor with a maxSize or the decompress interceptor.
  • The client makes requests to an HTTP server that can be malicious or compromised and can serve cacheable responses.
Affected
undici >=7.0.0 <7.30.2 · undici >=8.0.0 <8.12.4
Fixed in
8.12.4 · 7.30.2
ID
GHSA-3g9m-rv3r-w5w2
Open the alert
Medium
Exploitable only if · read by Gemini, the source remains the reference
  • Uses undici 7.x before 7.30.2 or 8.x before 8.12.4.
  • Uses an originless Agent dispatcher (not an origin-bound Client or Pool).
  • Interceptors are composed as compose(redirect(), cache()) (not compose(cache(), redirect())).
  • Cache interceptor uses a shared cache (type: 'shared', the default) with a shared MemoryCacheStore or SqliteCacheStore.
  • Requests carry Authorization, Cookie, or Proxy-Authorization credentials to user-specific URLs.
  • The server answers such requests with a same-origin redirect to a per-principal resource that is cacheable (e.g. public or s-maxage) without Vary on the credential.
Affected
undici >=7.0.0 <7.30.2 · undici >=8.0.0 <8.12.4
Fixed in
8.12.4 · 7.30.2
ID
GHSA-7xg3-fphp-28hg
Open the alert
High
Exploitable only if · read by Gemini, the source remains the reference
  • Project uses undici 6.x before 6.29.1, 7.x before 7.30.1, or 8.x before 8.12.2.
  • Application calls undici's fetch() against servers that may be attacker-controlled or malicious.
  • The server returns a response with more than five content codings and closes the connection before sending the body.
Affected
undici >=6.23.0 <6.29.1 · undici >=7.18.0 <7.30.1 · undici >=8.0.0 <8.12.2
Fixed in
8.12.2 · 7.30.1 · 6.29.1
ID
GHSA-xjj6-f33q-929c
Open the alert
Medium
Exploitable only if · read by Gemini, the source remains the reference
  • Project uses undici at a version earlier than 6.29.1, 7.30.1, or 8.12.2 (on the respective major line).
  • Application uses undici's EventSource client.
  • Application maintains an EventSource connection to an untrusted or potentially compromised Server-Sent Events peer.
Affected
undici >=6.5.0 <6.29.1 · undici >=7.0.0 <7.30.1 · undici >=8.0.0 <8.12.2
Fixed in
8.12.2 · 7.30.1 · 6.29.1
ID
GHSA-4qv8-2p9j-2685
Open the alert
Medium
Exploitable only if · read by Gemini, the source remains the reference
  • Project uses undici at version 7.15.0 or later, below 7.30.1 (7.x) or below 8.12.2 (8.x).
  • Application calls undici's fetch() with Subresource Integrity (integrity) metadata.
  • The integrity metadata uses a non-lowercase algorithm token (e.g. SHA256- or Sha256-).
  • An attacker can control the response body returned by the server.
Affected
undici >=7.15.0 <7.30.1 · undici >=8.0.0 <8.12.2
Fixed in
8.12.2 · 7.30.1
ID
GHSA-f72v-6w45-q472
Open the alert