# CVE-2025-30218: Next.js may leak x-middleware-subrequest-id to external hosts

- Severity: Low 1.7 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-01)
- Published: 2025-04-02T21:23:14.660Z
- Modified: 2026-06-17T09:08:22.653Z
- Also known as: GHSA-223j-4rm8-mrmf
- Weaknesses: CWE-200
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- vercel next.js: = 12.3.5; = 13.5.9; = 14.2.25; = 15.2.3; 12.3.5; 13.5.9; 14.2.25; 15.2.3
- next (npm): from 12.3.5 before 12.3.6; from 13.5.9 before 13.5.10; from 14.2.25 before 14.2.26; from 15.2.3 before 15.2.4

## Every score

- GitHub_M: CVSS:4.0 1.7 Low `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/vercel/next.js/security/advisories/GHSA-223j-4rm8-mrmf> (vendor-advisory, web)
- <https://vercel.com/changelog/cve-2025-30218-5DREmEH765PoeAsrNNQj3O> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-30218> (advisory)
- <https://github.com/vercel/next.js> (package)

## Sources

- CVE List: [CVE-2025-30218](https://www.cve.org/CVERecord?id=CVE-2025-30218), CVE Terms of Use, modified 2025-10-13
- GitHub Advisory Database: [GHSA-223j-4rm8-mrmf](https://github.com/advisories/GHSA-223j-4rm8-mrmf), CC-BY-4.0, modified 2025-10-13
- NVD: [CVE-2025-30218](https://nvd.nist.gov/vuln/detail/CVE-2025-30218), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-30218 · Whole record: https://cve.day/CVE-2025-30218.json · Rebuilt by cve.day 2026-11-25T22:58:55.969Z
