← Vulnerabilities

MediumAdvisoryJavaScript / Node.jsNext.jsReact

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

Affected

PackageAffected versionsFixed in
npm:next>= 16.2.0, <= 16.4.416.4.5

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 oute…

Read on GitHub Advisory Database

On 11/18/2026, 01:13 AM, GitHub Advisory Database published "Next.js: Cache leak across root param values in nested 'use cache' functions via delayed inner stream metadata" (type: Advisory). Severity is "Medium" (medium). Related technologies: JavaScript / Node.js, Next.js, React. CVE: CVE-2026-119351.