Next.js: Information disclosure across root params when a 'use cache' function is called through unstable_cache()
Published 16 Nov 2026 · Updated 16 Nov 2026
Is your project on an affected next?
Look after several JavaScript apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- >=16.3.0 <16.4.5
- Fixed in
- 16.4.5
npm install next@16.4.5Details
Next.js applications with 'use cache' can disclose cached data across root params when the same 'use cache' function is called both directly during rendering and through unstable_cache(), and that function reads a root param. Root params are route parameters of the root layout, and applications commonly use them to scope data, for example per locale.
During a cold process start, a cross-request deduplication race allowed an unstable_cache() call to join the in-flight fill of a concurrent direct call and receive its result, bypassing the root param check that would normally reject it. unstable_cache() then stored that result under a cache key without root params, so subsequent requests for other root param values received the same entry until it is revalidated or evicted. Cached data produced for one root param value is returned to requests for other values.
Exploitation requires the unstable_cache() request to arrive while the function's first fill after a process start is still in flight. Outside this race, the nesting already throws an error: 'use cache' inside unstable_cache() is unsupported, and avoiding it is a complete workaround.
Is GHSA-mfr8-8qww-v76h in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected next, and gives you the command that fixes it.
More advisories for next
- CriticalGHSA-673q-mjm6-r5xrNext.js: Unauthenticated Remote Code Execution in `use cache` functions returning typed arrays · 22 Oct 2026
- MediumCVE-2026-103004next.js cache leak across root param values in nested 'use cache' functions · 22 Oct 2026
- CriticalGHSA-2464-fhr4-w9xwNext.js: Unauthenticated Remote Code Execution in Image Optimization API when SVG files are used · 22 Oct 2026
- HighCVE-2026-94482Next.js: Denial of Service in App Router using Server Actions · 22 Oct 2026
- MediumCVE-2026-94544Next.js: Pending `use cache` fill can leak Draft Mode content into regular responses and persisted pages · 7 Oct 2026
- MediumCVE-2026-94543Next.js has cache poisoning of SSG and ISR pages in self-hosted applications · 7 Oct 2026
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.