CVE-2025-30218
April 02, 2025
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.
Affected Packages
https://github.com/vercel/next.js.git (GITHUB):
Affected version(s) =v15.2.3 <v15.2.4Fix Suggestion:
Update to version v15.2.4https://github.com/vercel/next.js.git (GITHUB):
Affected version(s) =v14.2.25 <v14.2.26Fix Suggestion:
Update to version v14.2.26https://github.com/vercel/next.js.git (GITHUB):
Affected version(s) =v12.3.5 <v12.3.6Fix Suggestion:
Update to version v12.3.6https://github.com/vercel/next.js.git (GITHUB):
Affected version(s) =v13.5.9 <v13.5.10Fix Suggestion:
Update to version v13.5.10next (NPM):
Affected version(s) Fix Suggestion:
Update to version 12.3.6next (NPM):
Affected version(s) Fix Suggestion:
Update to version 13.5.10next (NPM):
Affected version(s) Fix Suggestion:
Update to version 14.2.26next (NPM):
Affected version(s) Fix Suggestion:
Update to version 15.2.4Related Resources (4)
Do you need more information?
Contact UsCVSS v4
Base Score:
1.7
Attack Vector
NETWORK
Attack Complexity
HIGH
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
Exploit Maturity
UNREPORTED
CVSS v3
Base Score:
5.9
Attack Vector
NETWORK
Attack Complexity
HIGH
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Exposure of Sensitive Information to an Unauthorized Actor
EPSS
Base Score:
0.21