{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139839","assignerOrgId":"ce714d77-add3-4f53-aff5-83d477b104bb","state":"PUBLISHED","assignerShortName":"openjs","dateReserved":"2026-11-30T14:45:35.919Z","datePublished":"2026-12-05T09:48:51.781Z","dateUpdated":"2026-12-05T09:48:51.781Z"},"containers":{"cna":{"providerMetadata":{"orgId":"ce714d77-add3-4f53-aff5-83d477b104bb","shortName":"openjs","dateUpdated":"2026-12-05T09:48:51.781Z"},"descriptions":[{"lang":"en","value":"undici is an HTTP client for Node.js. In versions 7.17.0 through 7.30.3 and 8.0.0 through 8.14.0, when a shared cache interceptor serves a stale entry inside its stale-while-revalidate window and revalidates it in the background, a 304 Not Modified response that adds a Vary field the stored response did not have is not treated as a change of representation. undici re-stores the old, unvaried body under the background caller's value of that header and marks it fresh, so later callers with that header value are served a body generated for a different request, possibly for another user or tenant, without the origin being contacted. Applications are affected only when they use a shared cache, the origin first returns a cacheable response without Vary and with stale-while-revalidate, and a later background 304 introduces Vary. This results in cross-user disclosure of cached responses. The issue is fixed in undici 7.30.4 and 8.14.1, and users should upgrade to one of those versions or later. As a workaround, use a private cache, disable stale-while-revalidate reuse for per-user resources, or make sure the origin sends the final Vary on the initial response.","supportingMedia":[{"type":"text/html","base64":false,"value":"undici is an HTTP client for Node.js. In versions 7.17.0 through 7.30.3 and 8.0.0 through 8.14.0, when a shared cache interceptor serves a stale entry inside its stale-while-revalidate window and revalidates it in the background, a 304 Not Modified response that adds a Vary field the stored response did not have is not treated as a change of representation. undici re-stores the old, unvaried body under the background caller's value of that header and marks it fresh, so later callers with that header value are served a body generated for a different request, possibly for another user or tenant, without the origin being contacted. Applications are affected only when they use a shared cache, the origin first returns a cacheable response without Vary and with stale-while-revalidate, and a later background 304 introduces Vary. This results in cross-user disclosure of cached responses. The issue is fixed in undici 7.30.4 and 8.14.1, and users should upgrade to one of those versions or later. As a workaround, use a private cache, disable stale-while-revalidate reuse for per-user resources, or make sure the origin sends the final Vary on the initial response."}]}],"affected":[{"vendor":"undici","product":"undici","defaultStatus":"unaffected","versions":[{"versionType":"semver","status":"affected","version":"8.0.0","lessThan":"8.14.1"},{"versionType":"semver","status":"unaffected","version":"8.14.1"},{"versionType":"semver","status":"affected","version":"7.17.0","lessThan":"7.30.4"},{"versionType":"semver","status":"unaffected","version":"7.30.4"}],"packageURL":"pkg:npm/undici"}],"references":[{"url":"https://github.com/nodejs/undici/security/advisories/GHSA-hx5c-5pjj-2548"},{"url":"https://cna.openjsf.org/security-advisories.html"}],"credits":[{"lang":"en","type":"reporter","value":"HLMLSAMDO"},{"lang":"en","type":"remediation reviewer","value":"UlisesGascon"},{"lang":"en","type":"remediation developer","value":"mcollina"}],"title":"undici vulnerable to cross-user cache disclosure via Vary added on background 304 revalidation","metrics":[{"format":"CVSS","cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","baseScore":5.9,"baseSeverity":"MEDIUM"},"scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-200","lang":"en","description":"CWE-200: Exposure of Sensitive Information to an Unauthorized Actor","type":"CWE"}]},{"descriptions":[{"cweId":"CWE-524","lang":"en","description":"CWE-524: Use of Cache Containing Sensitive Information","type":"CWE"}]}],"x_generator":{"engine":"cve-kit 1.0.0"}}}}