CVE-2025-30218 Details
Description
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.
A vulnerability exists in Next.js Middleware that allows the `x-middleware-subrequest-id` to be sent to third-party hosts, potentially leading to unintended information disclosure. This issue arises because the subrequest ID, intended for internal use, is automatically included in fetch requests to external services, regardless of the host. The vulnerability affects Next.js versions 12.3.5, 13.5.9, 14.2.25, and 15.2.3.
Users are advised to update Next.js to version 12.3.6, 13.5.10, 14.2.26, or 15.2.4. Vercel customers are already protected by platform mitigations.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 3, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/vercel/next.js/security/advisories/GHSA-223j-4rm8-mrmf | [email protected] | Vendor Advisory |
| https://vercel.com/changelog/cve-2025-30218-5DREmEH765PoeAsrNNQj3O | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-200 | Exposure of Sensitive Information to an Unauthorized Actor | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| vercel next.js | 12.3.5 13.5.9 14.2.25 15.2.3 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 10, 2025 | Initial Analysis | [email protected] |
| Apr 2, 2025 | New CVE Received | [email protected] |