{"id":"CVE-2026-103004","published":"2026-10-01T14:50:27Z","modified":"2026-10-01T16:09:53Z","title":"next.js cache leak on warm `use cache` handlers accessing root param","vendor":"vercel","product":"next.js","tier":"tail","description":{"text":"Next.js versions from 16.3.0 to 16.3.7 warm `use cache` handlers using `next/root-params` and can leak their return value to pages with different root params. With Cache Components enabled (cacheComponents: true), a 'use cache' function that calls another 'use cache' function that reads a root param can be keyed incorrectly when the inner call is served from an existing entry: the enclosing function's cache key then omits that root param. The enclosing entry is written once and reused for all root param values, so a response for one root param value can serve content produced for a different value — whether the page is prerendered at build time or at runtime, or rendered dynamically. Shared cache headers let downstream caches redistribute the content further.\n\nWhat values are leaked cannot be attacker controlled. Which value's content is served depends only on which invocation wrote the entry first.\n\nThis has been patched in 16.3.8.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00343,"percentile":0.20255,"provenance":"source"},"cwes":[{"id":"CWE-524","name":"Use of Cache Containing Sensitive Information"}],"references":[{"url":"https://github.com/vercel/next.js/security/advisories/GHSA-h694-7cp9-m8p3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vercel/next.js/releases/tag/v16.3.8","tags":["x_refsource_MISC"]}],"priority":{"score":8.5,"factors":[{"name":"EPSS percentile","points":4.05},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"vercel","affectedVersions":[{"vendor":"vercel","product":"next.js","versions":["< 16.3.8"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-10-01T16:09:43.511822Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"next","vulnerableRanges":[">=16.3.0, <16.3.8"],"patched":["16.3.8"],"from":["GHSA-h694-7cp9-m8p3"],"provenance":"source"}],"summary":{"text":"Next.js versions 16.3.0 through 16.3.7 mishandle the cache keys of nested use cache functions that read root params when Cache Components is enabled, so an enclosing cache entry can omit the root param from its key and be reused across different root param values. An unauthenticated attacker with network access can receive content generated for a different root param value, with no user interaction or special configuration beyond Cache Components being enabled, and which value's content is served depends on which invocation wrote the entry first rather than on attacker input.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:13:07Z"},"euvd":{"id":"EUVD-2026-90872","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-vercel-next-js-cve-2026-103004","children":[{"from":"CVE-2026-103004","to":"CVE-2026-119351","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/next/src/server/use-cache/use-cache-wrapper.ts"],"commits":["https://github.com/vercel/next.js/commit/e92db4536a7f34ae2dbda583cfa1b4e0d06d1865","https://github.com/vercel/next.js/commit/80c96ede21798d4ad54da12fe50d5b00a09b06e3"],"basis":"shared function","functions":["cache","serveJoinedCacheEntry"]}]},{"from":"CVE-2026-103004","to":"CVE-2026-119790","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["packages/next/src/server/use-cache/use-cache-wrapper.ts"],"commits":["https://github.com/vercel/next.js/commit/e92db4536a7f34ae2dbda583cfa1b4e0d06d1865","https://github.com/vercel/next.js/commit/d605874e5a4b8b6b7dca1b6e07bcabb44d0e2e5b"],"basis":"shared function","functions":["cache"]}]}]}}