{"id":"CVE-2025-30218","published":"2025-04-02T21:23:14Z","modified":"2025-10-13T15:37:02Z","title":"Next.js may leak x-middleware-subrequest-id to external hosts","vendor":"vercel","product":"next.js","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":1.7,"severity":"LOW","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00431,"percentile":0.37287,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/vercel/next.js/security/advisories/GHSA-223j-4rm8-mrmf","tags":["x_refsource_CONFIRM"]},{"url":"https://vercel.com/changelog/cve-2025-30218-5DREmEH765PoeAsrNNQj3O","tags":["x_refsource_MISC"]}],"priority":{"score":8.6,"factors":[{"name":"EPSS percentile","points":7.46},{"name":"CVSS severity","points":1.19}]},"vendorSlug":"vercel","affectedVersions":[{"vendor":"vercel","product":"next.js","versions":["= 12.3.5","= 13.5.9","= 14.2.25","= 15.2.3"]}],"affected":[{"ecosystem":"npm","package":"next","vulnerableRanges":[">=12.3.5, <12.3.6",">=13.5.9, <13.5.10",">=14.2.25, <14.2.26",">=15.2.3, <15.2.4"],"patched":["12.3.6","13.5.10","14.2.26","15.2.4"],"from":["GHSA-223j-4rm8-mrmf"],"provenance":"source"}],"euvd":{"id":"EUVD-2025-9629","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-49826","published":"2025-07-03","fixed":"15.1.8","kev":false},{"cve":"CVE-2025-48068","published":"2025-05-30","fixed":"15.2.2","kev":false,"link":{"from":"CVE-2025-30218","to":"CVE-2025-48068","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:next","fromFixed":"14.2.26","toFixed":"14.2.30","daysApart":58}]}},{"cve":"CVE-2025-29927","published":"2025-03-21","fixed":"15.2.3","kev":false,"link":{"from":"CVE-2025-29927","to":"CVE-2025-30218","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:next","fromFixed":"12.3.5","toFixed":"12.3.6","daysApart":12},{"kind":"version-step","provenance":"source","package":"npm:next","fromFixed":"15.2.3","toFixed":"15.2.4","daysApart":12},{"kind":"similar","provenance":"machine","score":0.32,"basis":"same product + description similarity"}]}},{"cve":"CVE-2025-30218","published":"2025-04-02","fixed":"15.2.4","kev":false},{"cve":"CVE-2025-49005","published":"2025-07-03","fixed":"15.3.3","kev":false},{"cve":"CVE-2025-55173","published":"2025-08-29","fixed":"15.4.5","kev":false},{"cve":"CVE-2025-57752","published":"2025-08-29","fixed":"15.4.5","kev":false}],"package":"npm:next"}}