Remix and React Router allow URL manipulation via Host / X-Forwarded-Host headers
Affected releases · @react-router/express
- 7.x7.0.0 – 7.4.0Fixed in 7.4.1
On 7.x, the newest line:
npm install @react-router/express@7.4.1Every release on a timeline
Not affected
8.0.0 – 8.5.2
10 releases, latest
Affected
7.0.0 – 7.4.0
12 releases
Fixed
7.4.1 – 7.18.6
42 releases
Affected releases · @remix-run/express
- 2.x2.11.1 – 2.16.2Fixed in 2.16.3
On 2.x, the newest line:
npm install @remix-run/express@2.16.3Every release on a timeline
Not affected
0.21.0 – 2.11.0
90 releases
Affected
2.11.1 – 2.16.2
14 releases
Fixed
2.16.3 – 2.17.5
12 releases, latest
What happens
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
Rachid Allam (zhero;)
Yasser Allam (inzo_)
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.