{"id":"CVE-2025-31137","published":"2025-04-01T18:20:32Z","modified":"2025-04-02T15:11:11Z","title":"Remix and React Router allow URL manipulation via Host / X-Forwarded-Host headers","vendor":"remix-run","product":"react-router","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01201,"percentile":0.68949,"provenance":"source"},"cwes":[{"id":"CWE-444","name":"Inconsistent Interpretation of HTTP Requests"}],"references":[{"url":"https://github.com/remix-run/react-router/security/advisories/GHSA-4q56-crqp-v477","tags":["x_refsource_CONFIRM"]}],"priority":{"score":24.0,"factors":[{"name":"EPSS percentile","points":13.79},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.25}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2025-04-23","earliestUrl":"https://github.com/pouriam23/vulnerability-in-Remix-React-Router-CVE-2025-31137-","repos":[{"name":"pouriam23/vulnerability-in-Remix-React-Router-CVE-2025-31137-","url":"https://github.com/pouriam23/vulnerability-in-Remix-React-Router-CVE-2025-31137-","stars":1,"created":"2025-04-23"}]},"first":{"date":"2025-04-23","source":"PoC-in-GitHub","url":"https://github.com/pouriam23/vulnerability-in-Remix-React-Router-CVE-2025-31137-"},"provenance":"source"},"vendorSlug":"remix-run","affectedVersions":[{"vendor":"remix-run","product":"react-router","versions":[">= 7.0.0, < 7.4.1",">= 2.11.1, < 2.16.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-02T15:10:40.932074Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"@react-router/express","vulnerableRanges":[">=7.0.0, <7.4.1"],"patched":["7.4.1"],"from":["GHSA-4q56-crqp-v477"],"provenance":"source"},{"ecosystem":"npm","package":"@remix-run/express","vulnerableRanges":[">=2.11.1, <2.16.3"],"patched":["2.16.3"],"from":["GHSA-4q56-crqp-v477"],"provenance":"source"}],"summary":{"text":"The flaw lies in the Express adapter of Remix 2 and React Router 7, where the handling of the Host and X-Forwarded-Host headers allows the URL of an incoming request to be spoofed by placing a URL pathname in the port section of those headers. An unauthenticated remote attacker can exploit this by sending a crafted request to a Remix or React Router request handler, with no user interaction or special configuration required, to alter the request URL the application sees.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:33:37Z"},"euvd":{"id":"EUVD-2025-9433","exploited":false,"provenance":"source"}}