{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-30218","id":"CVE-2025-30218","title":"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","descriptionLong":"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.","published":"2025-04-02T21:23:14.660Z","updated":"2026-10-28T02:30:41.001288873Z","reserved":"2025-03-18T18:15:13.850Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"4.0","score":1.7,"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","rating":"low","source":"GitHub_M"},"metrics":[{"version":"4.0","score":1.7,"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","rating":"low","source":"GitHub_M"},{"version":"4.0","score":1.7,"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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"low","source":"github.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"low","source":"GitHub"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"NVD"}],"rating":"low","products":["vercel next.js"],"affectedProducts":[{"vendor":"vercel","product":"next.js","defaultStatus":null,"versions":[{"version":"= 12.3.5","status":"affected"},{"version":"= 13.5.9","status":"affected"},{"version":"= 14.2.25","status":"affected"},{"version":"= 15.2.3","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"npm","name":"next","purl":"pkg:npm/next","ranges":[">=12.3.5 <12.3.6",">=13.5.9 <13.5.10",">=14.2.25 <14.2.26",">=15.2.3 <15.2.4"],"fixed":["12.3.6","13.5.10","14.2.26","15.2.4"],"advisory":"GHSA-223j-4rm8-mrmf"}],"cwes":["CWE-200"],"aliases":["GHSA-223j-4rm8-mrmf"],"references":[{"url":"https://github.com/vercel/next.js/security/advisories/GHSA-223j-4rm8-mrmf","tags":["x_refsource_CONFIRM","Vendor Advisory","advisory","web"]},{"url":"https://vercel.com/changelog/cve-2025-30218-5DREmEH765PoeAsrNNQj3O","tags":["x_refsource_MISC","Vendor Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/30xxx/CVE-2025-30218.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-30218","tags":["advisory"]},{"url":"https://github.com/vercel/next.js","tags":["package"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00431,"epssPercentile":0.38119,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-30218","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-30218","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-30218","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-223j-4rm8-mrmf","ok":true,"note":"GHSA-223j-4rm8-mrmf"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-30218","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["nextjs"],"critical":[],"attention":null}