CVE-2026-119351: Next Cache Leak Across Root Param Vulnerability

MODERATE
Advisory Identifier: GHSA-vc7v-qv4w-wrv8
CWE-362
Published
Advisory Summary

CVE-2026-119351 is a MODERATE cache leak across root param vulnerability (CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')) affecting Next libraries in the npm ecosystem. The issue involves cache leak across root param values in nested 'use cache' functions via delayed inner stream metadata. Remediation is available by upgrading affected packages to version 16.4.5.

CVE-2026-119351 at a Glance

CVE Identifier CVE-2026-119351
GHSA Identifier GHSA-vc7v-qv4w-wrv8
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Affected Product Next
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2026-119351

To remediate this vulnerability, upgrade all affected Next dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

next fixed: 16.4.5
npm install next@16.4.5
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls next

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2026-119351, inspect your project dependencies using npm:

npm ls next

Analyze the terminal output to locate any version of Next in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 16.4.5), your application is affected.

Note: The npm ls next command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition'), where the product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently. In Next, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2026-119351 Affected Next Versions

1 component(s)
Fixed Versions:
16.4.5
Product / Package Ecosystem Affected Versions Fixed Version
next
npm
≥ 16.2.0
< 16.4.5
16.4.5

References

Frequently Asked Questions

What is CVE-2026-119351?
CVE-2026-119351 is a security vulnerability in Next involving Cache leak across root param values in nested 'use cache' functions via delayed inner stream metadata under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition').
Which Next versions are affected?
Affected versions include releases prior to 16.4.5 across affected packages: next.
What version fixes CVE-2026-119351?
Upgrading to 16.4.5 (or the latest patched release for your respective branch) resolves the vulnerability.
Is next affected?
Yes, next is affected in releases prior to 16.4.5. Upgrade your dependency to 16.4.5 or later.
What CWE is associated with CVE-2026-119351?
CVE-2026-119351 is classified under CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') (The product contains a concurrent code sequence that requires temporary, exclusive access to a shared resource, but a timing window exists in which the shared resource can be modified by another code sequence operating concurrently.).
How can I check npm dependencies for CVE-2026-119351?
Run the dependency tree command: 'npm ls next'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-vc7v-qv4w-wrv8",
  "modified" : "2026-11-17T16:13:26Z",
  "published" : "2026-11-17T16:13:26Z",
  "aliases" : [ "CVE-2026-119351" ],
  "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.\n\nWhat values are leaked cannot be attacker controlled. Which value's content is served depends only on which invocation wrote the entry first.\n\nThis 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.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "16.2.0"
      }, {
        "fixed" : "16.4.5"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 16.4.4"
    }
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/vercel/next.js/security/advisories/GHSA-vc7v-qv4w-wrv8"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-119351"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vercel/next.js/commit/80c96ede21798d4ad54da12fe50d5b00a09b06e3"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/vercel/next.js"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vercel/next.js/releases/tag/v16.4.5"
  }, {
    "type" : "WEB",
    "url" : "https://nextjs.org/blog/november-2026-security-release"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-362" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-17T16:13:26Z",
    "nvd_published_at" : "2026-11-16T19:17:27Z"
  }
}