CVE-2025-30218
mediumpriority · track · 24EPSS 0.004 · 37 %ileEURUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–medium · 1.7–5.9
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (16)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-223j-4rm8-mrmfNext.js may leak x-middleware-subrequest-id to external hosts2025-04-02ghsa · osvUS
## Summary In the process of remediating [CVE-2025-29927](https://github.com/advisories/GHSA-f82v-jwr5-mffw), we looked at other possible exploits of Middleware. We independently verified this low severity vulnerability in parallel with two reports from independent researchers. Learn more [here](https://vercel.com/changelog/cve-2025-30218-5DREmEH765PoeAsrNNQj3O). ## Credit Thank you to Jinseo Kim [kjsman](https://hackerone.com/kjsman?type=user) and [RyotaK](https://hackerone.com/ryotak?type=user) (GMO Flatt Security Inc.) with [takumi-san.ai](https://takumi-san.ai) for the responsible disclosure. These researchers were awarded as part of our bug bounty program.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://github.com/vercel/next.js/security/advisories/GHSA-223j-4rm8-mrmfcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2025-30218cnnvd
- https://vercel.com/changelog/cve-2025-30218-5DREmEH765PoeAsrNNQj3Ocnnvd
- https://github.com/vercel/next.js/security/advisories/GHSA-223j-4rm8-mrmfenisa_euvd
- https://vercel.com/changelog/cve-2025-30218-5DREmEH765PoeAsrNNQj3Oenisa_euvd
- https://github.com/vercel/next.js/security/advisories/GHSA-223j-4rm8-mrmfVendor Advisorynvd
- https://vercel.com/changelog/cve-2025-30218-5DREmEH765PoeAsrNNQj3OVendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan