{"id":"CVE-2025-30218","aliases":["CVE-2025-30218","GHSA-223j-4rm8-mrmf"],"related":[],"kind":"vulnerability","state":"published","title":"Next.js may leak x-middleware-subrequest-id to external hosts","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"## Summary\nIn 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.\n\nLearn more [here](https://vercel.com/changelog/cve-2025-30218-5DREmEH765PoeAsrNNQj3O).\n\n## Credit\n\nThank 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Next.js es un React framework para construir aplicaciones web de pila completa. Para mitigar CVE-2025-29927, Next.js validó el ID X-Middleware-subrequest que persistió en múltiples solicitudes entrantes. Sin embargo, esta ID de subrequest se envía a todas las solicitudes, incluso si el destino no es el mismo host que la aplicación Next.js. Iniciar una solicitud de recuperación a un tercero dentro de Middleware enviará el ID de subrequest de X-Middleware a ese tercero. Esta vulnerabilidad se fija en 12.3.6, 13.5.10, 14.2.26 y 15.2.4.","source":"nvd"}],"published":"2025-04-02T21:23:14.660Z","modified":"2026-06-17T09:08:22.653Z","severity":{"scorer":"GitHub_M","scheme":"CVSS: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","score":1.7,"rating":"LOW"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS: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","score":1.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS: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","rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"}],"cwes":["CWE-200"],"affected":[{"ranges":[{"version":"= 12.3.5","status":"affected"},{"version":"= 13.5.9","status":"affected"},{"version":"= 14.2.25","status":"affected"},{"version":"= 15.2.3","status":"affected"}],"vendor":"vercel","product":"next.js","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"12.3.5","status":"affected","fixed":"12.3.6"}],"ecosystem":"npm","package":"next","purl":"pkg:npm/next","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"13.5.9","status":"affected","fixed":"13.5.10"}],"ecosystem":"npm","package":"next","purl":"pkg:npm/next","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"14.2.25","status":"affected","fixed":"14.2.26"}],"ecosystem":"npm","package":"next","purl":"pkg:npm/next","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"15.2.3","status":"affected","fixed":"15.2.4"}],"ecosystem":"npm","package":"next","purl":"pkg:npm/next","source":"ghsa"},{"ranges":[{"status":"affected","version":"12.3.5"},{"status":"affected","version":"13.5.9"},{"status":"affected","version":"14.2.25"},{"status":"affected","version":"15.2.3"}],"vendor":"vercel","product":"next.js","cpe":"cpe:2.3:a:vercel:next.js:12.3.5:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/vercel/next.js/security/advisories/GHSA-223j-4rm8-mrmf","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://vercel.com/changelog/cve-2025-30218-5DREmEH765PoeAsrNNQj3O","tags":["vendor-advisory","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-30218","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/vercel/next.js","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-04-03T13:43:59.337Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-30218","url":"https://www.cve.org/CVERecord?id=CVE-2025-30218","licence":"CVE Terms of Use","modified":"2025-10-13T15:37:02.310Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-223j-4rm8-mrmf","url":"https://github.com/advisories/GHSA-223j-4rm8-mrmf","licence":"CC-BY-4.0","modified":"2025-10-13T15:35:50.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-30218","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-30218","licence":"Public domain","modified":"2026-06-17T09:08:22.653Z"}],"updatedAt":"2026-11-25T22:58:55.969Z","epss":{"score":0.00431,"percentile":0.39227,"date":"2026-12-01T12:00:22.000Z"}}