{"id":"CVE-2025-31137","summary":"Remix and React Router allow URL manipulation via Host / X-Forwarded-Host headers","details":"React Router is a multi-strategy router for React bridging the gap from React 18 to React 19. There is a vulnerability in Remix/React Router that affects all Remix 2 and React Router 7 consumers using the Express adapter. Basically, this vulnerability allows anyone to spoof the URL used in an incoming Request by putting a URL pathname in the port section of a URL that is part of a Host or X-Forwarded-Host header sent to a Remix/React Router request handler. This issue has been patched and released in Remix 2.16.3 and React Router 7.4.1.","aliases":["GHSA-4q56-crqp-v477"],"modified":"2026-04-10T05:25:42.994382Z","published":"2025-04-01T18:20:32.660Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31137.json","cna_assigner":"GitHub_M","cwe_ids":["CWE-444"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31137.json"},{"type":"ADVISORY","url":"https://github.com/remix-run/react-router/security/advisories/GHSA-4q56-crqp-v477"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-31137"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/remix-run/react-router","events":[{"introduced":"e8e3b004d94a949372e77ce97a543bff5bc6fb89"},{"fixed":"7350eef4e937e910308bcedd8254a4bba53058a6"}],"database_specific":{"versions":[{"introduced":"7.0.0"},{"fixed":"7.4.1"}]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-31137.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}