CVE-2025-30218

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

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.

Category

1.7
CVSS
Severity: Low
CVSS 4.0 •
EPSS 0.06%
Affected: vercel next.js
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2025-30218?
CVE-2025-30218 has been scored as a low severity vulnerability.
How to fix CVE-2025-30218?
To fix CVE-2025-30218, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2025-30218 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2025-30218 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2025-30218?
CVE-2025-30218 affects vercel next.js.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.