CVE-2026-84933

undici vulnerable to cross-user cookie disclosure via Set-Cookie caching in shared caches

Published Sep 4, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Based on the description, undici’s default shared cache interprets a Set‑Cookie header as an ordinary cacheable response, storing it without modification. When subsequently requested by another caller whose request matches the same cache key, the cached response—still containing the original Set‑Cookie header—is returned. This exposes the first caller’s cookie to an unrelated client, and an attacker can inject arbitrary cookies into a response that will then be cached and replayed to all future callers. The vulnerability is an information‑exposure flaw that maps to CWE‑200 and the caching of sensitive data, CWE‑524.

Affected Systems

The issue is present in undici versions 7.0.0 through 7.29.1 and 8.0.0 through 8.10.2 when the library operates in its default shared‑cache mode, which is enabled unless the application explicitly disables it.

Risk and Exploitability

The CVSS score of 6.5 indicates a moderate severity. The EPSS score is not available and the vulnerability is not listed in CISA’s KEV catalog, so the probability of exploitation is uncertain. The likely attack vector requires an attacker to send a cookie‑bearing response that the shared cache will accept—typically by controlling a server that the vulnerable application queries. If exploit succeeds, the attacker can obtain a victim’s session cookie, enabling session hijacking or unauthorized access. While the dependency on the shared cache reduces the attack surface, any environment that relies on undici’s shared‑cache mode could be affected.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade undici to v7.29.1 or v8.10.2 as soon as possible to apply the vendor fix.
  • If an upgrade cannot be performed immediately, disable the shared‑cache mode in the undici configuration or enforce Cache‑Control headers that mark Set‑Cookie responses as non‑cacheable.
  • Configure an additional filtering layer that removes or defangs the Set‑Cookie header before a response is stored in the cache, ensuring cookie‑bearing responses are never cached or served to other callers.

Generated by OpenCVE AI on September 4, 2026 at 21:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-2jfj-6hjv-fm6j undici vulnerable to cross-user cookie disclosure via Set-Cookie caching in shared caches
History
Type Values Removed Values Added
First Time appeared Nodejs
Nodejs undici
CPEs cpe:2.3:a:nodejs:undici:*:*:*:*:*:node.js:*:*
Vendors & Products Nodejs
Nodejs undici
Type Values Removed Values Added
First Time appeared Undici
Undici undici
Vendors & Products Undici
Undici undici
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title undici vulnerable to cross-user cookie disclosure via Set-Cookie caching in shared caches
Weaknesses CWE-200
CWE-524
References
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N'}

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-524

    Use of Cache Containing Sensitive Information

Sources

Status
PUBLISHED
Assigner
openjs
Published
Updated
Sep 4, 2026, 6:34 PM
Reserved
Sep 2, 2026, 4:20 PM
Status
Analyzed
Published
Sep 4, 2026, 5:17 PM
Modified
Sep 15, 2026, 2:38 PM
Severity
Moderate
Public date
Sep 4, 2026, 4:59 PM