CVE-2025-31137 Remix and React Router allow URL manipulation via Host / X-Forwarded-Host headers
HighCVSS 7.5
EPSS 1.2%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| react-router @react-router/express(npm) | >= 7.0.0, < 7.4.1 | 7.4.1 | Fixed |
| remix-run @remix-run/express(npm) | >= 2.11.1, < 2.16.3 | 2.16.3 | Fixed |
| remix-run react-router | = >= 2.11.1, < 2.16.3; = >= 7.0.0, < 7.4.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| react-router @react-router/express(npm) | >= 7.0.0, < 7.4.1 | 7.4.1 |
| remix-run @remix-run/express(npm) | >= 2.11.1, < 2.16.3 | 2.16.3 |
| remix-run react-router | = >= 7.0.0, < 7.4.1 | No fix listed |
| remix-run react-router | = >= 2.11.1, < 2.16.3 | No fix listed |
References
- https://github.com/remix-run/react-router/security/advisories/GHSA-4q56-crqp-v477 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product