CVE-2026-109829
Description
undici is an HTTP client library for Node.js. In versions 7.0.0 through 7.30.0 and 8.0.0 through 8.12.1, when an originless Agent composes the redirect and cache interceptors in that order with a shared cache store, the cache builds its key from the original request URL before the redirect handler changes the origin, so a response produced after a cross-origin redirect is stored under the original key. An attacker who controls the target of a redirect from a trusted URL can have their response cached under that trusted URL and served to later callers, allowing persistent cache poisoning, and the same key confusion lets a private, non-stored redirect response to a user-specific resource be stored under the original URL and served to a later unauthenticated caller, disclosing private data. Applications are affected only when an originless Agent, a shared cache store, and the redirect-then-cache composition are all used. The issue is fixed in undici 7.30.1 and 8.12.2, which verify the producing origin still matches the cache key and preserve each redirect hop's cache-control policy before storing, and users should upgrade to one of those versions or later. As a workaround, compose the cache interceptor before the redirect interceptor, use per-origin dispatchers and cache stores, or disable shared caching on redirect-capable requests.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
undicinpm | >= 7.0.0, < 7.30.1 | 7.30.1 |
undicinpm | >= 8.0.0, < 8.12.2 | 8.12.2 |
Affected products
26- osv-coords23 versionspkg:rpm/almalinux/nodejspkg:rpm/almalinux/nodejs-develpkg:rpm/almalinux/nodejs-docspkg:rpm/almalinux/nodejs-full-i18npkg:rpm/almalinux/nodejs-libspkg:rpm/almalinux/nodejs-nodemonpkg:rpm/almalinux/nodejs-npmpkg:rpm/almalinux/nodejs-packagingpkg:rpm/almalinux/nodejs-packaging-bundlerpkg:rpm/almalinux/nodejs24pkg:rpm/almalinux/nodejs24-develpkg:rpm/almalinux/nodejs24-docspkg:rpm/almalinux/nodejs24-full-i18npkg:rpm/almalinux/nodejs24-libspkg:rpm/almalinux/nodejs24-npmpkg:rpm/almalinux/nodejs26pkg:rpm/almalinux/nodejs26-develpkg:rpm/almalinux/nodejs26-docspkg:rpm/almalinux/nodejs26-full-i18npkg:rpm/almalinux/nodejs26-libspkg:rpm/almalinux/nodejs26-npmpkg:rpm/almalinux/npmpkg:rpm/almalinux/v8-12.4-devel
< 1:22.23.4-2.module_el8.10.0+4358+709b81be+ 22 more
- (no CPE)range: < 1:22.23.4-2.module_el8.10.0+4358+709b81be
- (no CPE)range: < 1:22.23.4-2.module_el8.10.0+4358+709b81be
- (no CPE)range: < 1:22.23.4-1.el10_2
- (no CPE)range: < 1:22.23.4-2.module_el8.10.0+4358+709b81be
- (no CPE)range: < 1:22.23.4-2.module_el8.10.0+4358+709b81be
- (no CPE)range: < 3.1.14-3.module_el8.10.0+4358+709b81be
- (no CPE)range: < 1:10.9.9-1.22.23.4.1.el10_2
- (no CPE)range: < 2021.06-6.module_el8.10.0+4158+e796f37f
- (no CPE)range: < 2021.06-6.module_el8.10.0+4158+e796f37f
- (no CPE)range: < 1:24.22.1-3.el10_2
- (no CPE)range: < 1:24.22.1-3.el10_2
- (no CPE)range: < 1:24.22.1-3.el10_2
- (no CPE)range: < 1:24.22.1-3.el10_2
- (no CPE)range: < 1:24.22.1-3.el10_2
- (no CPE)range: < 2:11.19.1-1.24.22.1.3.el10_2
- (no CPE)range: < 1:26.12.1-3.el10_3
- (no CPE)range: < 1:26.12.1-3.el10_3
- (no CPE)range: < 1:26.12.1-3.el10_3
- (no CPE)range: < 1:26.12.1-3.el10_3
- (no CPE)range: < 1:26.12.1-3.el10_3
- (no CPE)range: < 1:11.20.0-1.26.12.1.3.el10_3
- (no CPE)range: < 1:10.9.9-1.22.23.4.2.module_el8.10.0+4358+709b81be
- (no CPE)range: < 3:12.4.254.21-1.22.23.4.2.module_el8.10.0+4358+709b81be
Patches
Vulnerability mechanics
References
8- cna.openjsf.org/security-advisories.htmlnvdVendor AdvisoryWEB
- github.com/advisories/GHSA-4w7w-5xrc-9h26ghsaADVISORY
- github.com/nodejs/undici/security/advisories/GHSA-4w7w-5xrc-9h26nvdMitigationVendor AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2026-109829ghsaADVISORY
- github.com/nodejs/undici/commit/26c2bfb3def0b67241ce878e80657ed5d6c3efa8ghsaWEB
- github.com/nodejs/undici/commit/b20b82ad80a405a12b6ce1f341bcd418de390aa0ghsaWEB
- github.com/nodejs/undici/releases/tag/v7.30.1ghsaWEB
- github.com/nodejs/undici/releases/tag/v8.12.2ghsaWEB
News mentions
0No linked articles in our index yet.