GHSA-vc7v-qv4w-wrv8

Suggest an improvement
Source
https://github.com/advisories/GHSA-vc7v-qv4w-wrv8
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-vc7v-qv4w-wrv8/GHSA-vc7v-qv4w-wrv8.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-vc7v-qv4w-wrv8
Aliases
Published
2026-11-17T16:13:26Z
Modified
2026-11-17T16:30:03Z
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: Cache leak across root param values in nested 'use cache' functions via delayed inner stream metadata
Details

With Cache Components enabled, an outer 'use cache' function can be keyed incorrectly even when its inner 'use cache' call generates a fresh entry. If the inner function reads a root param (via next/root-params) and returns a value that still contains pending promises — for example an object with data that is ready immediately alongside slower data — React Flight delivers the ready portion to the outer function before the inner entry has finished publishing its root param dependencies. The outer function can then finish, and its cache entry is persisted under a key that omits that root param. The entry is written once and reused for all root param values, so a response for one root param value can serve content produced for a different value. Entries written this way can also ignore tag invalidation and cache lifetimes of the nested caches they consumed.

What values are leaked cannot be attacker controlled. Which value's content is served depends only on which invocation wrote the entry first.

This is a variant of https://github.com/advisories/GHSA-h694-7cp9-m8p3 that the fix for that advisory does not cover: it does not require the inner call to be served from an existing entry, and it does not depend on a slow cache handler.

Database specific
{
    "cwe_ids":  [
        "CWE-362"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-11-17T16:13:26Z",
    "nvd_published_at":  "2026-11-16T19:17:27Z",
    "severity":  "MODERATE"
}
References

Affected packages

npm / next

Package

Affected ranges

Type
SEMVER
Events
Introduced
16.2.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-vc7v-qv4w-wrv8/GHSA-vc7v-qv4w-wrv8.json"