Packages

HighVulnerabilityGHSA-4q56-crqp-v477CVE-2025-31137Published 1 Apr 2025

Remix and React Router allow URL manipulation via Host / X-Forwarded-Host headers

Your version of @react-router/express

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.1
Every release on a timeline
8.x
  1. Not affected

    8.0.0 – 8.5.2

    10 releases, latest

7.x
  1. Affected

    7.0.0 – 7.4.0

    12 releases

  2. Fixed

    7.4.1 – 7.18.6

    42 releases

64 stable releases of @react-router/express, oldest to newest, one row per major.
Your version of @remix-run/express

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.3
Every release on a timeline
  1. Not affected

    0.21.0 – 2.11.0

    90 releases

  2. Affected

    2.11.1 – 2.16.2

    14 releases

  3. Fixed

    2.16.3 – 2.17.5

    12 releases, latest

116 stable releases of @remix-run/express, oldest to newest.

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.