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

- Severity: High 7.5 (CVSS:3.0, scored by GitHub_M) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.20%, higher than 69% of CVEs (2026-12-01)
- Published: 2025-04-01T18:20:32.660Z
- Modified: 2026-06-17T09:09:55.317Z
- Also known as: GHSA-4q56-crqp-v477
- Weaknesses: CWE-444
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- remix-run react-router: >= 7.0.0, < 7.4.1; >= 2.11.1, < 2.16.3
- @react-router/express (npm): from 7.0.0 before 7.4.1
- @remix-run/express (npm): from 2.11.1 before 2.16.3

## Every score

- GitHub_M: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

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

## Sources

- CVE List: [CVE-2025-31137](https://www.cve.org/CVERecord?id=CVE-2025-31137), CVE Terms of Use, modified 2025-04-02
- GitHub Advisory Database: [GHSA-4q56-crqp-v477](https://github.com/advisories/GHSA-4q56-crqp-v477), CC-BY-4.0, modified 2025-04-01
- NVD: [CVE-2025-31137](https://nvd.nist.gov/vuln/detail/CVE-2025-31137), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-31137 · Whole record: https://cve.day/CVE-2025-31137.json · Rebuilt by cve.day 2026-11-25T22:58:55.927Z
