Vulnerability
CVE-2026-119790
Next.js is a React framework for building full-stack web applications. From 16.3.0 until 16.4.5, Next.js applications using the same 'use cache' function directly during rendering and through unstable_cache() can disclose cached data across root params when that function reads a root param. During the first fill after a cold process start, cross-request deduplication allows a concurrent unstable_cache() request to join the direct call's in-flight fill and receive its result before the root param mismatch is rejected. unstable_cache() then persists that result under a key that omits root params, causing later requests for other root param values to receive the same entry until revalidation or eviction. Exploitation requires the unstable_cache() request to arrive while the first fill is in flight. Outside this race, nesting 'use cache' inside unstable_cache() raises an unsupported-operation error, and avoiding that nesting prevents the issue. This issue is fixed in version 16.4.5.
11 advisories report this vulnerability, across 2 ecosystems.
Advisories
- CGA-2498-352h-r6x8
- CGA-7xfr-2q92-ggjw
- CGA-8288-mf7q-vw72
- CGA-8c95-28r5-cqfc
- CGA-hp43-52j8-qr37
- CGA-mrw9-w66p-mx8g
- CGA-pf6c-w8gg-w43j
- CGA-q4rf-h5hc-4prg
- CGA-r32x-4h2c-4g7q
- CGA-r5qw-7264-w2jj
-
GHSA-mfr8-8qww-v76h
Next.js: Information disclosure across root params when a 'use cache' function is called through unstable_cache()