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

CVE-2026-119351: Next.js: Cache leak across root param values in nested 'use cache' functions via delayed inner stream metadata

Published 2026-11-17 · Updated 2026-11-17 · Also known as GHSA-vc7v-qv4w-wrv8

Summary

Next.js contains a cache leak vulnerability across root param values in nested 'use cache' functions due to delayed inner stream metadata. Engineering teams using Next.js versions 16.2.0 up to 16.4.5 with Cache Components enabled should apply updates.

Who is affected

Affected deployments are Next.js applications utilizing Cache Components and nested 'use cache' functions that read root parameters. Under these conditions, an outer cache entry may be incorrectly keyed and persisted while omitting root param dependencies, causing a response generated for one root param value to be served to a different value and ignoring tag invalidation or cache lifetimes. The values leaked are not attacker-controlled, and which value's content is served depends on which invocation wrote the entry first.

Exploitability

The vulnerability has a CVSS 4.0 base score of not computed with an attack vector of network, low attack complexity, and present attack requirements, requiring no privileges or user interaction. It presents low confidential impact with none for integrity and availability, and an EPSS score of 0.002. CISA Known Exploited Vulnerabilities status is no.

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.2.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

Can an attacker control the values that are leaked?

No, what values are leaked cannot be attacker controlled, and which value's content is served depends only on which invocation wrote the entry first.

Is active exploitation of this vulnerability documented by CISA KEV?

No, CISA Known Exploited Vulnerabilities status is no.

What versions of the npm 'next' package are affected?

Versions introduced at 16.2.0 and fixed in 16.4.5 are affected.

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

References

Source records: GHSA-vc7v-qv4w-wrv8 (OSV.dev) · EPSS by FIRST, 2026-11-26.