GHSA-mfr8-8qww-v76h

Suggest an improvement
Source
https://github.com/advisories/GHSA-mfr8-8qww-v76h
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-mfr8-8qww-v76h/GHSA-mfr8-8qww-v76h.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-mfr8-8qww-v76h
Aliases
Downstream
CGA (9)
Published
2026-11-16T18:51:22Z
Modified
2026-11-16T19:15:07Z
Severity
  • 6.3 (Medium) CVSS_V4 - 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 CVSS Calculator
Summary
Next.js: Information disclosure across root params when a 'use cache' function is called through unstable_cache()
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.

Database specific
{
    "cwe_ids": [
        "CWE-362"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-11-16T18:51:22Z",
    "nvd_published_at": null,
    "severity": "MODERATE"
}
References

Affected packages

npm / next

Package

Affected ranges

Type
SEMVER
Events
Introduced
16.3.0
Fixed
16.4.5

Database specific

last_known_affected_version_range
"<= 16.4.4"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-mfr8-8qww-v76h/GHSA-mfr8-8qww-v76h.json"