GHSA-vvgp-ww4w-46vf

Suggest an improvement
Source
https://github.com/advisories/GHSA-vvgp-ww4w-46vf
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/11/GHSA-vvgp-ww4w-46vf/GHSA-vvgp-ww4w-46vf.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-vvgp-ww4w-46vf
Aliases
Published
2026-11-19T22:18:08Z
Modified
2026-11-19T22:45:06Z
Severity
  • 6.3 (Medium) CVSS_V4 - 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 CVSS Calculator
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.

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.

Database specific
{
    "cwe_ids": [
        "CWE-349"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-11-19T22:18:08Z",
    "nvd_published_at": "2026-11-16T19:17:27Z",
    "severity": "MODERATE"
}
References

Affected packages

npm / next

Package

Affected ranges

Type
SEMVER
Events
Introduced
16.4.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-vvgp-ww4w-46vf/GHSA-vvgp-ww4w-46vf.json"