Summary
Next.js: Information disclosure across root params when a 'use cache' function is called through unstable_cache()
Advisory details
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.
References
- https://github.com/advisories/GHSA-mfr8-8qww-v76h
- https://github.com/vercel/next.js/security/advisories/GHSA-mfr8-8qww-v76h
- https://github.com/vercel/next.js/commit/d605874e5a4b8b6b7dca1b6e07bcabb44d0e2e5b
- https://github.com/vercel/next.js/releases/tag/v16.4.5
- https://nextjs.org/blog/november-2026-security-release
Related vulnerabilities
All Supply chain →- MEDIUMCVE-2026-119351
Next.js: Cache leak across root param values in nested 'use cache' functions via delayed inner stream metadata
- MEDIUMCVE-2026-128069
rails-html-sanitizer: Possible XSS via shared scrubber state in concurrent calls
- MEDIUMCVE-2026-125325
pgEdge RAG Server shared keyword index leaked results between concurrent unauthenticated requests
- MEDIUMCVE-2026-114157
Microsoft Security Advisory CVE-2026-114157 - ASP.NET Core Security Feature Bypass Vulnerability
- HIGHGHSA-95x6-7hq8-2c37
Duplicate Advisory: Microsoft Security Advisory CVE-2026-114157 - ASP.NET Core Security Feature Bypass Vulnerability
- MEDIUMGHSA-f3fj-9625-rv3m
charmbracelet/soft-serve: Race in `SetPrivate` leaves a private repository readable by unauthenticated users