CVE-2026-109829 undici cache poisoning: check versions and upgrade
undici 7.0.0–7.30.0 and 8.0.0–8.12.1 can file redirected responses under the wrong address, risking cache poisoning and private data disclosure. Check your version and upgrade.
Published by phil.on on
How this vulnerability works
undici fetches web content for Node.js programs and can keep a shared copy of responses. A reported flaw files some responses under the wrong web address.
- How it starts
A request follows a forwarding link
A program uses undici with a shared cache and an agent that has no fixed origin, and it applies the redirect handling before the cache handling. The request starts at a trusted address and is forwarded to another site.
- What goes wrong
The cache saves under the first address
The cache records the address before the redirect changes it. The response that comes back from the other site is therefore stored under the original trusted address, and any private response can also be filed under that public address.
- What it means for you
Wrong content served to later callers
Later callers asking for the trusted address could receive the attacker's stored content, a lasting cache poisoning. A later caller without sign-in could also receive a private response, disclosing private data. Only deployments using all three settings are affected.
An everyday comparisonIt is like a mailroom that writes the return address on a parcel before forwarding it. When the parcel comes back from somewhere else, it is filed under the first address, so the next person asking for that address gets the wrong contents.
A simplified explanation of the reported flaw. Actual risk depends on the affected version and how the system is used.
Affected products
- undici (HTTP client library for Node.js), versions 7.0.0 through 7.30.0 and 8.0.0 through 8.12.1. Fixed in 7.30.1 and 8.12.2 or later.
- Severity: CVSS 9.1 (Critical).
- Applications are affected only when they use an originless Agent, a shared cache store, and compose the redirect interceptor before the cache interceptor. Deployments that do not meet all three conditions are not affected.
- undici undici ↗undici / undici: 7.0.0 | < 7.30.1 | affected | semver; 7.30.1 | unaffected | semver; 8.0.0 | < 8.12.2 | affected | semver; 8.12.2 | unaffected | semver
- nodejs undici ↗
Why it matters
undici is a library that Node.js programs use to fetch web content. In the affected versions, a cache built from a shared store can file a response under the wrong web address when a request first follows a redirect (a forwarding instruction to another site) and the cache is applied afterwards. Because of this mix-up, content from a site controlled by an attacker could be stored under a trusted address and later handed to other users, which is called cache poisoning. The same flaw could also store a private, user-specific response under a public address, so a later caller without sign-in could receive private data. Only applications that combine a shared cache, an agent without a fixed origin, and the redirect-before-cache order are exposed; upgrading to undici 7.30.1 or 8.12.2 or later resolves the issue.
Checks and remediation
What to check
- List the undici versions in use. For each Node.js application, run
npm ls undici(or the equivalent for your package manager) and look for versions from 7.0.0 through 7.30.0 or 8.0.0 through 8.12.1. Also check any bundled or transitive copies, including lockfiles and container images. - Determine whether the three conditions are met: an originless Agent, a shared cache store, and the redirect interceptor composed before the cache interceptor. If any condition is absent, the application is not affected by this issue.
- Check container images and deployment manifests for pinned undici versions, and note which running services were built with an affected version.
Remediation steps
- Upgrade undici. Move to undici 7.30.1 or later in the 7.x line, or 8.12.2 or later in the 8.x line, following the vendor advisory. The fix checks that the origin producing a response still matches the cache key and preserves each redirect hop's cache-control policy before storing.
- Self-hosted Ubuntu/Linux and other customer-managed hosts: the operator of each host is responsible for patching. Update the dependency with your package manager or build tooling, rebuild and redeploy the application or container image, and confirm the lockfile now records a fixed version.
- AWS: where you run your own EC2 instances or self-managed containers (for example on EKS), you are responsible for rebuilding images and redeploying with a fixed undici version. If you use a fully managed AWS service that bundles undici, follow that service's guidance from AWS for when a fixed version becomes available.
- GCP: similarly, on Compute Engine or self-managed GKE workloads, rebuild images and redeploy with a fixed undici version. For fully managed GCP services that bundle the library, follow the provider's guidance rather than assuming the service is already patched.
- If upgrading immediately is not possible, apply a reversible workaround from the vendor advisory: compose the cache interceptor before the redirect interceptor, use per-origin dispatchers and cache stores, or disable shared caching on requests that can follow redirects. Revisit these changes once a fixed version is deployed.
- Verification: after redeploying, re-run
npm ls undicion each application and confirm only 7.30.1+ or 8.12.2+ is installed. Clear any existing shared cache entries created before the fix, then confirm that redirected responses are stored under the correct origin and that private responses are not served to unauthenticated callers. Monitor the vendor advisory for any further updates.
Patch status
Patch status unconfirmed.
Workarounds
Workaround not documented.
CVSS and CWE
CVSS 3.1 · 7.4 · openjs ↗CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Additional CVSS assessments by source and scope
- CVSS 3.1 · 7.4 · ce714d77-add3-4f53-aff5-83d477b104bb ↗
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N - CVSS 3.1 · 9.1 · [email protected] ↗
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N - CVSS 3.1 · 7.4 · openjs ↗
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N





