// For flags

CVE-2025-30218

Next.js may leak x-middleware-subrequest-id to external hosts

Severity Score

1.7
*CVSS v4

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

0
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

Track
*SSVC
Descriptions

Next.js is a React framework for building full-stack web applications. To mitigate CVE-2025-29927, Next.js validated the x-middleware-subrequest-id which persisted across multiple incoming requests. However, this subrequest ID is sent to all requests, even if the destination is not the same host as the Next.js application. Initiating a fetch request to a third-party within Middleware will send the x-middleware-subrequest-id to that third party. This vulnerability is fixed in 12.3.6, 13.5.10, 14.2.26, and 15.2.4.

*Credits: N/A
CVSS Scores
Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
None
System
Vulnerable | Subsequent
Confidentiality
Low
None
Integrity
None
None
Availability
None
None
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
Attack Vector
Network
Attack Complexity
Low
Authentication
None
Confidentiality
Partial
Integrity
Partial
Availability
Partial
* Common Vulnerability Scoring System
SSVC
  • Decision:Track
Exploitation
None
Automatable
No
Tech. Impact
Partial
* Organization's Worst-case Scenario
Timeline
  • 2025-03-18 CVE Reserved
  • 2025-04-02 CVE Published
  • 2025-04-03 CVE Updated
  • 2025-04-08 EPSS Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
  • ---------- First Exploit
CWE
  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
CAPEC
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
Vercel
Search vendor "Vercel"
Next.js
Search vendor "Vercel" for product "Next.js"
12.3.5
Search vendor "Vercel" for product "Next.js" and version "12.3.5"
en
Affected
Vercel
Search vendor "Vercel"
Next.js
Search vendor "Vercel" for product "Next.js"
13.5.9
Search vendor "Vercel" for product "Next.js" and version "13.5.9"
en
Affected
Vercel
Search vendor "Vercel"
Next.js
Search vendor "Vercel" for product "Next.js"
14.2.25
Search vendor "Vercel" for product "Next.js" and version "14.2.25"
en
Affected
Vercel
Search vendor "Vercel"
Next.js
Search vendor "Vercel" for product "Next.js"
15.2.3
Search vendor "Vercel" for product "Next.js" and version "15.2.3"
en
Affected