undici vulnerable to cross-origin cache poisoning via missing origin isolation in interceptors
## Impact When `interceptors.cache()` or `interceptors.deduplicate()` is used with a dispatcher that does not carry a single authoritative origin, or when a request supplies its own `origin`, undici builds the cache and deduplication keys without the actual destination origin. If a cache store or interceptor instance is shared across more than one origin, otherwise-identical requests to different origins are keyed together. An attacker who controls the response from one origin can then have that response returned for a request to a different, trusted origin when the method, path, and relevant headers match. This allows cross-origin information disclosure and persistent cache poisoning, including chains such as JWKS cache poisoning where a token signed with an attacker-held key is accepted as belonging to a trusted issuer. Applications that share `interceptors.cache()` or `interceptors.deduplicate()` state across origins are affected. An `Agent` is not affected, because its dispatch options include the request origin. This was introduced in undici 8.10.0 and affects 8.10.0 and 8.10.1. ## Patches Upgrade to undici v8.10.2. ## Workarounds Use a separate cache store and a separate interceptor instance for each origin, and do not share them across origins.
GHSA-vp8m-p9jh-q5pm
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:GHSA-vp8m-p9jh-q5pm
undici
Source reference: /affected/0/package/name
- Affected versions
- Not stated in this record
- Fixed versions
- 8.10.2
Source reference:
/affected/0/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "8.10.0"
},
{
"fixed": "8.10.2"
}
]
}
],
"package": {
"name": "undici",
"purl": "pkg:npm/undici",
"ecosystem": "npm"
},
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/09/GHSA-vp8m-p9jh-q5pm/GHSA-vp8m-p9jh-q5pm.json"
}
}
]- Related CVEs
- CVE-2026-85152
Source reference:
/aliases
Publisher severity
high
Source reference: /database_specific/severity
- Event
- #31147 · Revision 1
- Added to Heist Feed
- Publisher date