CVE-2026-119350: Next Cache Poisoning Of Shared Fallback Vulnerability

MODERATE
Advisory Identifier: GHSA-vvgp-ww4w-46vf
CWE-349
Published
Advisory Summary

CVE-2026-119350 is a MODERATE cache poisoning of shared fallback vulnerability (CWE-349: Acceptance of Extraneous Untrusted Data With Trusted Data) affecting Next libraries in the npm ecosystem. The issue involves cache poisoning of shared fallback shells in cache components via request-supplied placeholder route params. Remediation is available by upgrading affected packages to version 16.4.5.

CVE-2026-119350 at a Glance

CVE Identifier CVE-2026-119350
GHSA Identifier GHSA-vvgp-ww4w-46vf
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-349: Acceptance of Extraneous Untrusted Data With Trusted Data
Affected Product Next
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2026-119350

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-119350, 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-349: Acceptance of Extraneous Untrusted Data With Trusted Data, where the product, when processing trusted data, accepts any untrusted data that is also included with the trusted data, treating the untrusted data as if it were trusted. 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

Self-hosted Next.js applications served with `next start` and built with `cacheComponents: true` but without Partial Prefetching accept a request-supplied route param value as a prerender placeholder. One unauthenticated GET request can poison the fallback shell cache entry that a family of routes shares. Such a route is served from a shell that keeps its never-prerenderable params as placeholders, so every value of those params shares one cache entry. A path segment equal to the percent-encoded, bracketed name of its own route param is treated as an unresolved placeholder, and only that param is deferred. A layout above it then renders its concrete value into the shell during the blocking render, and the result, including its HTTP status, is stored under the shared key. Depending on the application, the stored entry is one of the following: - A persistent 404, when the layout rejects the value with `notFound()`: served to every URL under the shell key with `"revalidate": false`, across server restarts, with no error logged. - A substituted param value, when the layout renders the value: the server-rendered HTML renders the attacker's value for that param in place of the visitor's own. A JavaScript client corrects it on hydration. No markup or script injection is possible, and no data is disclosed. ### Preconditions 1. `cacheComponents: true` with `partialPrefetching` unset or `false`. 2. Self-hosted serving with `next start`. 3. A dynamic route with a prerenderable param (`generateStaticParams`) whose requested value was not generated at build time. 4. At least two never-prerenderable params below it: a layout reading the shallower one inside a Suspense boundary, and a deeper one the request supplies as the placeholder. 5. A blocking fallback shell. ### Workarounds Set `partialPrefetching: true` in `next.config`. Otherwise, apps should upgrade to the patched version as soon as possible.

CVE-2026-119350 Affected Next Versions

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

References

Frequently Asked Questions

What is CVE-2026-119350?
CVE-2026-119350 is a security vulnerability in Next involving Cache poisoning of shared fallback shells in Cache Components via request-supplied placeholder route params under CWE-349: Acceptance of Extraneous Untrusted Data With Trusted Data.
Which Next versions are affected?
Affected versions include releases prior to 16.4.5 across affected packages: next.
What version fixes CVE-2026-119350?
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-119350?
CVE-2026-119350 is classified under CWE-349: Acceptance of Extraneous Untrusted Data With Trusted Data (The product, when processing trusted data, accepts any untrusted data that is also included with the trusted data, treating the untrusted data as if it were trusted.).
How can I check npm dependencies for CVE-2026-119350?
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-vvgp-ww4w-46vf",
  "modified" : "2026-11-19T22:18:08Z",
  "published" : "2026-11-19T22:18:08Z",
  "aliases" : [ "CVE-2026-119350" ],
  "summary" : "Next.js: Cache poisoning of shared fallback shells in Cache Components via request-supplied placeholder route params",
  "details" : "Self-hosted Next.js applications served with `next start` and built with `cacheComponents: true` but without Partial Prefetching accept a request-supplied route param value as a prerender placeholder. One unauthenticated GET request can poison the fallback shell cache entry that a family of routes shares.\n\nSuch a route is served from a shell that keeps its never-prerenderable params as placeholders, so every value of those params shares one cache entry. A path segment equal to the percent-encoded, bracketed name of its own route param is treated as an unresolved placeholder, and only that param is deferred. A layout above it then renders its concrete value into the shell during the blocking render, and the result, including its HTTP status, is stored under the shared key.\n\nDepending on the application, the stored entry is one of the following:\n\n- A persistent 404, when the layout rejects the value with `notFound()`: served to every URL under the shell key with `\"revalidate\": false`, across server restarts, with no error logged.\n- A substituted param value, when the layout renders the value: the server-rendered HTML renders the attacker's value for that param in place of the visitor's own. A JavaScript client corrects it on hydration. No markup or script injection is possible, and no data is disclosed.\n\n### Preconditions\n\n1. `cacheComponents: true` with `partialPrefetching` unset or `false`.\n2. Self-hosted serving with `next start`.\n3. A dynamic route with a prerenderable param (`generateStaticParams`) whose requested value was not generated at build time.\n4. At least two never-prerenderable params below it: a layout reading the shallower one inside a Suspense boundary, and a deeper one the request supplies as the placeholder.\n5. A blocking fallback shell.\n\n### Workarounds\n\nSet `partialPrefetching: true` in `next.config`. Otherwise, apps should upgrade to the patched version as soon as possible.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:L/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "next"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "16.4.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-vvgp-ww4w-46vf"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-119350"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/vercel/next.js/commit/18eeffb5fabd91911852d44cf56948b3f2cbee04"
  }, {
    "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-349" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-11-19T22:18:08Z",
    "nvd_published_at" : "2026-11-16T19:17:27Z"
  }
}