CVE-2025-31137: Remix and React Router allow URL manipulation via Host / X-Forwarded-Host headers
Vulnerability summary
CVE-2025-31137 is a high (CVSS 7.5) vulnerability in remix-run react-router. EPSS estimates a 1.20% chance of exploitation in the next 30 days, higher than 69.2% of scored vulnerabilities.
Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Timeline
- 01-04-2025PublishedVulnerability first disclosed.
- 02-04-2025Last modifiedVulnerability information updated.
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 metrics
3 scores · 3 sources · 1 version- OSV · NpmEcosystem advisory · calculated7.5HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.20%
Chance of exploitation in the next 30 days
Percentile
69%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 1.19% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
@react-router1 product
- express≥ 7.0.0, < 7.4.1
@remix-run1 product
- express≥ 2.11.1, < 2.16.3
Remix-run1 product
- react-router≥ 7.0.0, < 7.4.1 | ≥ 2.11.1, < 2.16.3
3 vendors · 3 products