Skip to content
PatchBriefing

Search PatchBriefing

Type at least two characters. Results update as you type.

Search CVEs, products, packages and article titles.

Nothing found. Identifiers such as CVE and GHSA can be searched in both languages.

Subscribe

Medium · 6.3 React CVE-2026-119790 GHSA-mfr8-8qww-v76h GHSA-vc7v-qv4w-wrv8 CVE-2026-119351

Next.js: Two Cache-Related Information Disclosure Issues Fixed in 16.4.5

Two race-condition bugs in Next.js's caching system (CVE-2026-119790 and CVE-2026-119351) could cause cached data from one root param value to be served to requests for a different root param value. Both are fixed in version 16.4.5.

By PatchBriefing · ·

Produced automatically from official sources with the help of AI. How we work →

AI summary

Next.js, the widely used React framework from Vercel, has disclosed two related vulnerabilities affecting applications that use its 'use cache' and Cache Components features. Both issues stem from race conditions during cache population and can cause data cached for one root parameter value to be incorrectly served to requests using a different root parameter value. Both are fixed in Next.js 16.4.5.

What happened

Two separate caching race conditions were identified in Next.js. CVE-2026-119790 occurs when the same 'use cache' function is called both directly during rendering and through unstable_cache(). During the first fill after a cold process start, a concurrent unstable_cache() request can join the in-flight direct call and receive its result before a root param mismatch is rejected. unstable_cache() then stores that result under a cache key that omits the root param, so later requests for other root param values receive the same stale entry until revalidation or eviction. CVE-2026-119351 affects applications with Cache Components enabled, where a nested 'use cache' call reads a root param via next/root-params and returns a value containing pending promises. React Flight can deliver the ready portion of that value to the outer 'use cache' function before the inner cache finishes publishing its root-param dependencies, allowing the outer entry to complete and be persisted under a key that also omits the root param. This causes the first-written value to be served for other root param values and lets the outer entry bypass nested cache tag invalidation and lifetimes.

Technical cause

Both issues are classified as CWE-362, concurrent execution using a shared resource with improper synchronization. In CVE-2026-119790, cross-request deduplication for the shared 'use cache' function allows a concurrent unstable_cache() call to attach to an in-flight fill and inherit its result before validation of the root param completes. In CVE-2026-119351, the vulnerability requires neither an existing inner cache entry nor a slow cache handler, and is explicitly not covered by the fix for CVE-2026-103004. The leaked value in CVE-2026-119351 is not attacker-controlled; it depends on which invocation happens to write the cache entry first.

Why it matters

In multi-tenant or parameterized applications that key page or data variants on a root parameter (for example per-tenant or per-locale content), these races can cause one visitor's cached response to be served to another visitor requesting a different root param value. This is an information disclosure risk: data intended for one context can leak into a response for a different context. Exploitation requires hitting a narrow timing window during cache population, and the leaked content is not attacker-chosen, which limits severity, but the condition is unauthenticated and requires no user interaction to trigger from the requester's side.

Affected versions

CVE-2026-119790 affects Next.js from version 16.3.0 up to (not including) 16.4.5. CVE-2026-119351 affects Next.js from version 16.2.0 up to (not including) 16.4.5. Both are fixed in Next.js 16.4.5.

Fixes and mitigation

Both issues are resolved in Next.js 16.4.5. There is no indication in the available information of a configuration-based mitigation for either issue beyond the described code conditions (nesting 'use cache' inside unstable_cache() for CVE-2026-119790, and using next/root-params inside nested 'use cache' calls with Cache Components enabled for CVE-2026-119351). Upgrading remains the only confirmed remediation.

Recommended action

Upgrade affected Next.js applications to version 16.4.5 or later. Applications using 'use cache' together with unstable_cache(), or using Cache Components with nested 'use cache' functions that read root params, should prioritize this update, particularly if they serve different content per root parameter value (for example multi-tenant deployments).

PatchBriefing score

6.3 / 10 · Medium

Official CVSS: 6.3

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

EPSS 0.0040 (26 percentile)

Why this score

The PatchBriefing score equals the official CVSS score; when this article covers several vulnerabilities, the highest one. Signals such as known exploitation and EPSS are listed separately and do not change the score.

Affected versions

next >= 16.3.0, <= 16.4.4
vulnerable
next ≥ 16.3.0 < 16.4.5
vulnerable
≥ 16.4.5
patched
next >= 16.2.0, <= 16.4.4
vulnerable
next ≥ 16.2.0 < 16.4.5
vulnerable
≥ 16.4.5
patched

Reported fixes

Both issues are resolved in Next.js 16.4.5. There is no indication in the available information of a configuration-based mitigation for either issue beyond the described code conditions (nesting 'use cache' inside unstable_cache() for CVE-2026-119790, and using next/root-params inside nested 'use cache' calls with Cache Components enabled for CVE-2026-119351). Upgrading remains the only confirmed remediation.

How this was built

8 source records were collected, matched and used to prepare the report above.

  • CVE.org database
  • CVE.org database
  • GitHub Advisory Database database
  • NVD (NIST) database
  • NVD (NIST) database
  • OSV.dev database
Unified report
Next.js: Two Cache-Related Information Disclosure Issues Fixed in 16.4.5
1 article · 8 sources cited
Revision history
  1. Published
  2. Generated
  3. Published
  4. Generated
  5. Published
  6. Generated
The Morning Brief

Relevant changes for the stacks you follow.

Choose your stacks, topics and optional WordPress plugins. At 07:00 CET, matching advisories and releases from the reporting period are grouped into one email.

✓ Choose stacks and topics✓ Change preferences anytime✓ One grouped email