Acceptance of Extraneous Untrusted Data With Trusted Data Affecting next package, versions >=16.4.0 <16.4.5


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.22% (13th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JS-NEXT-22733206
  • published22 Nov 2026
  • disclosed19 Nov 2026
  • creditUnknown

Introduced: 19 Nov 2026

NewCVE-2026-119350  (opens in a new tab)
CWE-349  (opens in a new tab)

How to fix?

Upgrade next to version 16.4.5 or higher.

Overview

next is a react framework.

Affected versions of this package are vulnerable to Acceptance of Extraneous Untrusted Data With Trusted Data via request-supplied placeholder route params in the app-page-runtime template when cacheComponents: true is set without Partial Prefetching. A path segment equal to the percent-encoded, bracketed name of its own route param is accepted as an unresolved placeholder, causing a layout above it to render the attacker-controlled value into the shared fallback shell during a blocking render. The poisoned entry, including its HTTP status, is then stored under the shared cache key and served to every URL in that route family, resulting in either a persistent 404 or a substituted param value visible in server-rendered HTML until hydration corrects it on the client. No markup or script injection is possible and no data is disclosed.

Note: This is only exploitable when cacheComponents: true is set with partialPrefetching unset or false, the application is self-hosted with next start, the route has a prerenderable param whose value was not generated at build time, at least two never-prerenderable params exist below it with a layout reading the shallower one inside a Suspense boundary, and a blocking fallback shell is in use.

Workaround

Set partialPrefetching: true in next.config.

CVSS Base Scores

version 4.0
version 3.1