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
Attack Complexity
Attack Requirements
Privileges Required
User Interaction
System
Vulnerable | Subsequent
Confidentiality
Integrity
Availability
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
Attack Vector
Attack Complexity
Authentication
Confidentiality
Integrity
Availability
* Common Vulnerability Scoring System
SSVC
- Decision:Track
Exploitation
Automatable
Tech. Impact
* 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
References (2)
URL | Tag | Source |
---|---|---|
https://github.com/vercel/next.js/security/advisories/GHSA-223j-4rm8-mrmf | X_refsource_confirm | |
https://vercel.com/changelog/cve-2025-30218-5DREmEH765PoeAsrNNQj3O | X_refsource_misc |
URL | Date | SRC |
---|
URL | Date | SRC |
---|
URL | Date | SRC |
---|
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
|