Vulnerabilities

CVE-2025-31137

High 7.5 CVSS 3.0

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.

Description as published by the source, in English.

Key facts

Published
2025-04-01
Last modified
2026-06-17
Assigned by
security-advisories@github.com
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Scored by
security-advisories@github.com
Probability of exploitation
1.2 % higher than 64 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
react-router express (npm) ≥ 7.0.0, < 7.4.1 Affected
remix-run express (npm) ≥ 2.11.1, < 2.16.3 Affected

Weakness type

  • CWE-444: Inconsistent Interpretation of HTTP Requests

    The product acts as an intermediary HTTP agent (such as a proxy or firewall) in the data flow between two entities such as a client and server, but it does not interpret malformed HTTP requests or responses in ways that…

References

Related at Berigo

Articles

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities