MEDIUM · CVSS 4.0 EPSS 0.4% · 36th percentile CWE-362

CVE-2026-119790: Next.js: Information disclosure across root params when a 'use cache' function is called through unstable_cache()

Published 2026-11-16 · Updated 2026-11-16 · Also known as GHSA-mfr8-8qww-v76h

Summary

Next.js applications using 'use cache' may incorrectly leak data across different root parameters due to a race condition during process startup. Developers using affected versions of Next.js should upgrade to version 16.4.5 to resolve this caching vulnerability.

Who is affected

The vulnerability affects Next.js applications that utilize both 'use cache' functions and 'unstable_cache()' calls simultaneously when those functions rely on root layout parameters. This flaw occurs during a cold process start where a race condition allows cached data to be improperly associated with the wrong root parameters, causing cross-request information disclosure. Outside of this specific race condition, the framework generally prevents nesting these functions.

Exploitability

The vulnerability is rated as MEDIUM severity, relying on a race condition during process initialization for exploitation. With an EPSS score of 0.004, the exploit likelihood is relatively low, and it is not currently listed as a CISA Known Exploited Vulnerability.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-11-18. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
npm next >= 16.3.0, < 16.4.5 16.4.5 npm install [email protected]

Tracked tools affected

Next.js · Next.js security advisories · Fixed in Next.js 16.4.5 release notes

CVSS 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

Attack vectorNetwork
Attack complexityLow
Attack requirementsPresent
Privileges requiredNone
User interactionNone
Confidentiality (vulnerable system)Low
Integrity (vulnerable system)None
Availability (vulnerable system)None
Confidentiality (subsequent systems)None
Integrity (subsequent systems)None
Availability (subsequent systems)None

Base score is not computed for CVSS 4.0 vectors; severity is taken from the advisory.

FAQ

Is this vulnerability actively exploited in the wild?

No, there is no evidence of active exploitation as this issue is not listed on the CISA Known Exploited Vulnerabilities catalog.

Does this issue occur during normal application operation?

The disclosure specifically occurs due to a cross-request deduplication race during a cold process start; otherwise, the framework throws an error for unsupported nesting of these functions.

What is the primary consequence of this flaw?

The primary impact is information disclosure, where cached data intended for one root parameter is incorrectly returned to requests for other root parameter values.

Original advisory description
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

Source records: GHSA-mfr8-8qww-v76h (OSV.dev) · EPSS by FIRST, 2026-11-21.