Skip to content

react-router

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

CVE-2025-31137Published 1 Apr 2025, 18:20 UTC

Real-world risk

3.4/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

7.5

scored by the vendor (CNA), CVSS 3.0

In plain words

No plain-language summary yet. The original description is below.

Original description (from GitHub_M)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
react-routerNiche>= 7.0.0, < 7.4.1; >= 2.11.1, < 2.16.37.4.1, 2.16.3

What to do

Update to a fixed version: 7.4.1, 2.16.3.

Why this score

FactorValueEvidence×
ImpactDenial of serviceCrash or resource exhaustion onlyFrom the CVSS vector0.40
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionNoneNothingFrom the CVSS vector1.00
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 1.2% chance of exploitation in 30 days (percentile 69), as of 2026-12-02.

The arithmetic
  1. Prerequisites multiplied together1.000
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.4 × prerequisites 1 × threat 0.853.400
  4. Rounded to one decimal between 0.1 and 103.4

How the score works

Exploitation and evidence timeline

  1. 1 Apr 2025 Published
  2. 3 Dec 2026 Risk 3.4 (cvss fallback)

Weakness

CWE-444

References

Get alerts for react-router

Free email or text alerts when a vulnerability in react-router reaches risk 8 or higher. Nothing else.