Race Condition Affecting next package, versions >=16.2.0 <16.4.5


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.24% (16th 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-22606112
  • published19 Nov 2026
  • disclosed17 Nov 2026
  • creditUnknown

Introduced: 17 Nov 2026

NewCVE-2026-119351  (opens in a new tab)
CWE-362  (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 Race Condition via delayed inner stream metadata in nested 'use cache' functions, where an outer 'use cache' function can be keyed incorrectly when its inner 'use cache' call reads a root param via next/root-params and returns a value containing pending promises. React Flight delivers the ready portion of the inner result to the outer function before the inner cache entry has finished publishing its root param dependencies, allowing the outer function to complete and persist its cache entry under a key that omits the root param. That entry is then reused for all root param values, so a response produced for one root param value can be served to requests for a different value. Entries written this way can also bypass tag invalidation and cache lifetimes of the nested caches they consumed.

Note: This is only exploitable when the Cache Components ('use cache') feature is enabled and the application uses nested 'use cache' functions where the inner function reads root params via next/root-params.

CVSS Base Scores

version 4.0
version 3.1