Skip to main content
Public proof of conceptFix available

CVE-2025-31137

A public proof of concept exists; no exploitation attested.

  • Published2025-04-01
  • Fixed in2.16.3
  • WeaknessCWE-444

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2025-04-0119:15CVE publishedNVD

Versions per branch

OSV
@remix-run/express
BranchAffectedFixed in
2.x≥ 2.11.1, < 2.16.32.16.3
@react-router/express
BranchAffectedFixed in
7.x≥ 7.0.0, < 7.4.17.4.1

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • remix-run react-router
    Affected
    • = >= 7.0.0, < 7.4.1no fix stated
    • = >= 2.11.1, < 2.16.3no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2025-04-01

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Vendor advisories

  • CVE-2025-31137 Red Hat Product Security1 known affected

    react-router: Remix Host Header Spoofing Vulnerability

    rhoai/odh-dashboard-rhel8 as a component of Red Hat OpenShift AI (RHOAI)

Full record on NVD

Fix

  1. Update @remix-run/express to 2.16.3
  2. Workaround from the vendor Red Hat Product Security CVE-2025-31137 · 1 productMitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
  3. No fix available, says the vendor Red Hat Product Security CVE-2025-31137 · 1 productAffected

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
2025-04-01
Last Modified
2026-06-17
NVD status
Deferred
GitHub Advisory
GHSA-4q56-crqp-v477

Frequently asked questions

What is CVE-2025-31137?

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.

Is CVE-2025-31137 actively exploited?

Active exploitation of CVE-2025-31137 has not been confirmed. Its EPSS score was 1.2% on 2026-11-18, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2025-31137?

CVE-2025-31137 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Running @remix-run/express? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record