{"id":"CVE-2026-84933","aliases":["CVE-2026-84933","GHSA-2jfj-6hjv-fm6j"],"related":[],"kind":"vulnerability","state":"published","title":"undici vulnerable to cross-user cookie disclosure via Set-Cookie caching in shared caches","summary":"undici's cache interceptor does not handle the Set-Cookie response header anywhere in its cache path, so it neither refuses to store nor strips that header. In shared cache mode, which is the default, an otherwise cacheable response that carries a Set-Cookie header, for example one marked with a public and max-age directive, is stored and then re-served to a later caller that matches the same cache key. As a result one caller's cookie is disclosed to a different caller, and an untrusted server can inject cookies into cached responses served to all subsequent callers. This violates the requirement that a shared cache must not store cookies. This affects undici versions from 7.0.0 up to 7.29.1 and from 8.0.0 up to 8.10.2. Users should upgrade to undici 7.29.1 or 8.10.2.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"undici's cache interceptor does not handle the Set-Cookie response header anywhere in its cache path, so it neither refuses to store nor strips that header. In shared cache mode, which is the default, an otherwise cacheable response that carries a Set-Cookie header, for example one marked with a public and max-age directive, is stored and then re-served to a later caller that matches the same cache key. As a result one caller's cookie is disclosed to a different caller, and an untrusted server can inject cookies into cached responses served to all subsequent callers. This violates the requirement that a shared cache must not store cookies. This affects undici versions from 7.0.0 up to 7.29.1 and from 8.0.0 up to 8.10.2. Users should upgrade to undici 7.29.1 or 8.10.2.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nundici's `interceptors.cache()` does not handle `Set-Cookie` in the cache path. In shared-cache mode (`type: 'shared'`, the default), a cacheable response (for example `Cache-Control: public, max-age=...`) carrying a `Set-Cookie` header is stored, and the stored `Set-Cookie` is re-served to a later caller that hits the same cache key. This exposes one user's cookie to another caller and lets an untrusted upstream inject cookies into cached responses served to all subsequent callers, violating RFC 6265 section 7.2 (a shared cache must not store cookies). Applications using the shared cache interceptor against untrusted or multi-user upstreams are affected. Private caches (`type: 'private'`) are not affected.\n\n### Patches\n\nUpgrade to `7.29.1` or `8.10.2`. In shared-cache mode, undici no longer stores or re-serves responses containing `Set-Cookie`, including previously cached entries and revalidation paths.\n\n### Workarounds\n\nUse a private cache (`type: 'private'`) for per-user responses, or avoid caching responses that set cookies. Applications acting as shared caches should strip `Set-Cookie` from responses before caching.","format":"markdown","source":"ghsa"}],"published":"2026-09-04T16:59:08.807Z","modified":"2026-09-29T18:30:41.174Z","severity":{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"openjs","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","score":8.2,"rating":"HIGH"}],"cwes":["CWE-200","CWE-524"],"affected":[{"ranges":[{"type":"semver","introduced":"7.0.0","fixed":"7.29.1","status":"affected"},{"type":"semver","version":"7.29.1","status":"unaffected"},{"type":"semver","introduced":"8.0.0","fixed":"8.10.2","status":"affected"},{"type":"semver","version":"8.10.2","status":"unaffected"}],"vendor":"undici","product":"undici","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"7.0.0","status":"affected","fixed":"7.29.1"}],"ecosystem":"npm","package":"undici","purl":"pkg:npm/undici","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"8.0.0","status":"affected","fixed":"8.10.2"}],"ecosystem":"npm","package":"undici","purl":"pkg:npm/undici","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"7.0.0","fixed":"7.29.1"},{"status":"affected","introduced":"8.0.0","fixed":"8.10.2"}],"vendor":"nodejs","product":"undici","cpe":"cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/nodejs/undici/security/advisories/GHSA-2jfj-6hjv-fm6j","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://cna.openjsf.org/security-advisories.html","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-84933","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/nodejs/undici/commit/b6c5a00252c37da9dd2db9bead053bb843e1f988","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/nodejs/undici/commit/cb75bbb34224a968b4ad80cab8b7aba5e0b3b28a","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/nodejs/undici","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/nodejs/undici/releases/tag/v7.29.1","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/nodejs/undici/releases/tag/v8.10.2","tags":["web"],"sources":["ghsa"]}],"credits":["mcollina","UlisesGascon"],"assigner":"openjs","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-09-04T18:34:06.167Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-84933","url":"https://www.cve.org/CVERecord?id=CVE-2026-84933","licence":"CVE Terms of Use","modified":"2026-09-04T18:34:14.407Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2jfj-6hjv-fm6j","url":"https://github.com/advisories/GHSA-2jfj-6hjv-fm6j","licence":"CC-BY-4.0","modified":"2026-09-29T18:30:41.174Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-84933","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-84933","licence":"Public domain","modified":"2026-09-15T14:38:55.600Z"}],"updatedAt":"2026-11-25T22:59:36.373Z","epss":{"score":0.00303,"percentile":0.24798,"date":"2026-12-01T12:00:22.000Z"}}