Skip to main content

Next.js CVE-2026-119790

| EUVDEUVD-2026-126578 MEDIUM
Race Condition (CWE-362)
2026-11-16 GitHub_M GHSA-mfr8-8qww-v76h
6.3
CVSS 4.0 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Trigger cold-start direct 'use cache' fill reading a root param
  2. Delivery
    Send concurrent unstable_cache() request during in-flight fill
  3. Exploit
    Join leader's fill, bypassing root-param check
  4. Execution
    Persist result under cache key omitting root params
  5. Impact
    Later requests for other root params receive foreign data

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Concurrency control, locking
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires a specific application code pattern: the same 'use cache' function must be invoked both directly during rendering and through unstable_cache(), and that function must read a root param (root-layout route parameters commonly used to scope data per locale or tenant). The leak only occurs during the first fill after a cold process start, and the unstable_cache() request must arrive while that initial fill is still in flight - a narrow timing race (reflected as AT:P). Strong limiting factors: outside this race the nesting already throws 'use cache' inside unstable_cache() is unsupported, so steady-state/warm caches are not affected; exploitation is probabilistic, not attacker-controllable on demand; and avoiding the nesting of 'use cache' inside unstable_cache() is a complete workaround. Disclosure is bounded to cached data of one root-param value served to requests for another, persisting only until revalidation or eviction.

Impact

This is a medium-severity information-disclosure flaw whose real-world priority is modest. The CVSS 4.0 score is 6.3 (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): network-reachable and unauthenticated (PR:N), but it carries AT:P (attack requirements present), which correctly reflects the CWE-362 race condition - the attacker cannot trigger it on demand. Only confidentiality is affected, and only at Low (VC:L), because what leaks is cached response data belonging to a different root-param value (for example another locale or tenant), not credentials or full data stores. No EPSS score, no CISA KEV entry, and no public exploit were supplied, so there is no public exploit identified at time of analysis; the vuln.today decision label is this_month, i.e. patch on a normal cycle rather than act_now/emergency. The limiting signals (AT:P race timing, cold-process-start-only window, and a required application code pattern) dominate over the unauthenticated network vector, so this reads as a genuine but lower-urgency bug rather than a high-impact priority. EPSS data is missing and should be checked for a widely deployed framework, but nothing in the input suggests widespread or automatable exploitation.

Exploit ScenarioDerived

In a multi-locale or multi-tenant Next.js app that calls the same 'use cache' function both directly during rendering and through unstable_cache(), where that function reads a root param, a request restarts the process (cold start) and a concurrent unstable_cache() request arrives while the first fill is still in flight. The joining request bypasses the root-param check, and unstable_cache() persists the leader's root-param-specific result under a key that omits root params, so later requests for other root-param values receive that foreign entry until revalidation or eviction. No public exploit code exists; the patch commit includes a public regression test that demonstrates the race in a controlled e2e harness, but triggering it in production is probabilistic and timing-dependent.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 16, 2026

Cached-data disclosure in Next.js 16.3.0 through 16.4.4 lets a request for one root-param value (for example one locale or tenant) receive cached data produced for a different root-param value, but only when an application invokes the same 'use cache' function both directly during rendering and through unstable_cache(), and that function reads a root param. The leak is confined to the first fill after a cold process start and requires the unstable_cache() call to land while that initial fill is still in flight, a narrow timing window reflected in the CVSS 4.0 AT:P metric and the assessed AC:H; steady-state and warm caches are unaffected. No public exploit code has been identified at time of analysis, and exposure is bounded to cached data served across root params until revalidation or eviction. Vendor-released patch: 16.4.5.

RemediationAI

Upgrade the next package to 16.4.5, the vendor-released fix, which turns the cross-root-param join into a fail-closed error on the deduplication path (commit d605874e5a4b8b6b7dca1b6e07bcabb44d0e2e5b); see https://github.com/vercel/next.js/security/advisories/GHSA-mfr8-8qww-v76h and https://github.com/vercel/next.js/releases/tag/v16.4.5. If an immediate upgrade is not possible, the vendor documents avoiding nesting 'use cache' inside unstable_cache() as a complete workaround: do not route the same cache function through both a direct render-time call and unstable_cache(), and do not have such a shared function read root params. Existing cached entries produced before the fix should be assumed potentially cross-contaminated until they are revalidated or evicted, so purge the affected cache entries as part of the upgrade; the trade-off of that purge is a cold cache and the associated latency and origin load. Because exploitation is a probabilistic race that requires a cold process start and a concurrent request during the initial fill, restarting server processes does not remove the exposure and is not a substitute for the upgrade.

Affected VersionsENISA

next.js 16.3.0, < 16.4.5

Affected Packages

npm next fix: 16.4.5
euvd next_js fix: 16.4.5

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in npm, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Next.js 'use cache' is a directive that memoizes the result of a server-side function; root params are route parameters of the root layout (packages/next/src/server/use-cache/use-cache-wrapper.ts computes a cache-key suffix from them via computeRootParamsCacheKeySuffix) and are commonly used to scope data per locale or tenant. The root cause is a classic CWE-362 race in the cross-request deduplication layer: on a cold process start the first fill is registered under a coarse key because no root-param reads are known yet, so a concurrent unstable_cache() call, which carries no root params, can join the in-flight fill and receive the leader's root-param-specific result before the mismatch check would reject it. unstable_cache() then persists that value under a key that omits root params, so later requests for other root-param values are served the same entry until revalidation or eviction. The fixture in the fix deliberately holds the cold fill in flight for two seconds to make the join window deterministic. The upstream commit d605874e5a4b8b6b7dca1b6e07bcabb44d0e2e5b closes this by throwing a createRootParamsUnavailableError (message: 'used root params (...) inside "use cache" nested within unstable_cache. Root params are not available in this context.') on both the fork path and the join path when the fill read root params and the joiner has none, making the join fail closed rather than forking or persisting a cross-root-param entry.

Know when Next Js gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 6.3 MEDIUM
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
vuln.today AI 3.7 LOW

Unauthenticated network trigger (AV:N/PR:N/UI:N) but a cold-start timing race makes reliable exploitation hard (AC:H); only cross-root-param cached data leaks, so C:L with no integrity or availability impact.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 16, 2026 - 19:02 EUVD
CVE Published
Nov 16, 2026 - 18:13 cve.org
MEDIUM 6.3

DescriptionCVE.org

Next.js is a React framework for building full-stack web applications. From 16.3.0 until 16.4.5, Next.js applications using the same 'use cache' function directly during rendering and through unstable_cache() can disclose cached data across root params when that function reads a root param. During the first fill after a cold process start, cross-request deduplication allows a concurrent unstable_cache() request to join the direct call's in-flight fill and receive its result before the root param mismatch is rejected. unstable_cache() then persists that result under a key that omits root params, causing later requests for other root param values to receive the same entry until revalidation or eviction. Exploitation requires the unstable_cache() request to arrive while the first fill is in flight. Outside this race, nesting 'use cache' inside unstable_cache() raises an unsupported-operation error, and avoiding that nesting prevents the issue. This issue is fixed in version 16.4.5.

Threat Intelligence Overview

EPSS Score
0.4%
Top 65% exploitable
Prevalence
High
widely deployed full-stack React framework in broad production web use
Threat Intel
1
1 source
Exploit
POC
Public exploit code exists
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
High

Priority Score

52
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Race conditions occur when multiple concurrent requests exploit the brief time gap between checking a condition and acting upon it (TOCTOU - Time of Check, Time of Use).

CVE-2025-55182 CRITICAL POC
10.0 Dec 03

React Server Components in React 19.x contain a critical pre-authentication remote code execution vulnerability (CVE-202

CVE-2017-16877 HIGH POC
7.5 Nov 17

ZEIT Next.js before 2.4.1 has directory traversal under the /_next and /static request namespace, allowing attackers to

CVE-2025-55184 HIGH POC
7.5 Dec 11

Pre-authentication denial of service in React Server Components (versions 19.0.0 through 19.2.1) allows unauthenticated

CVE-2025-55183 MEDIUM POC
5.3 Dec 11

Information disclosure in React Server Components 19.x, distributed as react-server-dom-webpack, react-server-dom-turbop

CVE-2026-75604 CRITICAL POC
9.0 Sep 01

Path traversal in Next.js (13.4.0 through 15.5.23 and 16.x before 16.3.3) running on Windows-hosted servers lets a remot

CVE-2025-57822 HIGH POC
8.2 Aug 29

Server-side request forgery in Vercel Next.js affects self-hosted deployments whose custom middleware calls next()/NextR

CVE-2024-34351 HIGH POC
7.5 May 14

Next.js is a React framework that can provide building blocks to create web applications. Rated high severity (CVSS 7.5)

CVE-2023-46298 HIGH POC
7.5 Oct 22

Next.js before 13.4.20-canary.13 lacks a cache-control header and thus empty prefetch responses may sometimes be cached

CVE-2018-6184 HIGH POC
7.5 Jan 24

ZEIT Next.js 4 before 4.2.3 has Directory Traversal under the /_next request namespace. Rated high severity (CVSS 7.5),

CVE-2025-67779 HIGH
7.5 Dec 12

Unsafe deserialization in React Server Components Server Function endpoints allows remote unauthenticated attackers to t

CVE-2026-119351 MEDIUM POC
6.3 Nov 16

Next.js 16.2.0 through 16.4.4 with the opt-in Cache Components feature can persist an outer 'use cache' entry under a ke

CVE-2026-94483 HIGH
8.3 Oct 02

Server-side request forgery in the Next.js Image Optimization endpoint lets a remote, unauthenticated attacker cause the

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy