# CVE-2025-31137: Remix and React Router allow URL manipulation via Host / X-Forwarded-Host headers

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.5 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 2.16.3, 7.4.1 (CNA); fix release not confirmed
- Status: published
- Published: 2025-04-01 · Modified: 2025-04-02
- Aliases: GHSA-4q56-crqp-v477
- Record: https://cvemate.com/vulnerability/CVE-2025-31137 · JSON: https://cvemate.com/vulnerability/CVE-2025-31137/json

## Description

```text
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.
```

## Signals

- CVSS: 7.5 high (v3.0, CVE.org) CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- EPSS: 1.201%, percentile 69.213%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- @react-router express (Npm): ≥ 7.0.0, \< 7.4.1
- @remix-run express (Npm): ≥ 2.11.1, \< 2.16.3
- remix-run react-router: ≥ 7.0.0, \< 7.4.1 \| ≥ 2.11.1, \< 2.16.3

## References

- <https://github.com/remix-run/react-router/security/advisories/GHSA-4q56-crqp-v477>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-31137>
- <https://github.com/remix-run/react-router>

---

Data as of 2026-12-05T13:00:33.748Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
