@react-router/express
Affected
- introduced
7.0.0, fixed7.4.1(semver)
Fixed versions
7.4.1
Fix
- Fixed version
7.4.1npm install @react-router/[email protected]
Advisory
Also known as: CVE-2025-31137
Remix and React Router allow URL manipulation via Host / X-Forwarded-Host headers
Impact
We received a report about 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.
Patches
This issue has been patched and released in Remix 2.16.3 React Router 7.4.1.
Credits
High Basis: The source's own band: HIGH
7.0.0, fixed 7.4.1 (semver)7.4.1
7.4.1npm install @react-router/[email protected]2.11.1, fixed 2.16.3 (semver)2.16.3
2.16.3npm install @remix-run/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0