High severity · published Apr 1, 2025
CVE-2025-31137
Remix and React Router allow URL manipulation via Host / X-Forwarded-Host headers
7.5
CVSS
1.2%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)1.2% · higher than 68% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
RE
react-router · remix-run
>= 7.0.0, < 7.4.1; >= 2.11.1, < 2.16.3 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-31137
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-31137
github.com
https://github.com/remix-run/react-router/security/advisories/GHSA-4q56-crqp-v477
More from react-router
9.1
CVE-2025-61686
React Router has Path Traversal in File Session Storage
8.2
CVE-2026-21884
React Router SSR XSS in ScrollRestoration
8.2
CVE-2025-43865
React Router allows pre-render data spoofing on React-Router framework mode
8.1
CVE-2026-42211
React Router's vendored turbo-stream v2 allows arbitrary constructor invocation via TYPE_ERROR deserialization leading to Unauth RCE
7.6
CVE-2025-59057
React Router has XSS Vulnerability
