---
title: "GHSA-4q56-crqp-v477: Remix and React Router allow URL manipulation via Host / X-Forwarded-Host headers"
description: "High severity. Remix and React Router allow URL manipulation via Host / X-Forwarded-Host headers."
url: https://inlinr.com/advisories/GHSA-4q56-crqp-v477
lang: en
---

[Packages](https://inlinr.com/packages)

High Vulnerability GHSA-4q56-crqp-v477 CVE-2025-31137 Published 1 Apr 2025

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

Your version of @react-router/express 

Affected releases · [@react-router/express](https://inlinr.com/packages/@react-router/express)

- 7.x 7.0.0 – 7.4.0 Fixed in 7.4.1

On 7.x, the newest line:

```
npm install @react-router/express@7.4.1
```

Every release on a timeline

8.x 

1. Not affected

8.0.0 – 8.5.2  
10 releases, latest

7.x 

1. Affected

7.0.0 – 7.4.0  
12 releases
2. Fixed

7.4.1 – 7.18.6  
42 releases

64 stable releases of @react-router/express, oldest to newest, one row per major.

Your version of @remix-run/express 

Affected releases · [@remix-run/express](https://inlinr.com/packages/@remix-run/express)

- 2.x 2.11.1 – 2.16.2 Fixed in 2.16.3

On 2.x, the newest line:

```
npm install @remix-run/express@2.16.3
```

Every release on a timeline

1. Not affected

0.21.0 – 2.11.0  
90 releases
2. Affected

2.11.1 – 2.16.2  
14 releases
3. Fixed

2.16.3 – 2.17.5  
12 releases, latest

116 stable releases of @remix-run/express, oldest to newest.

## What happens

Impact

We received a report about 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.

Patches

This issue has been patched and released in Remix 2.16.3 React Router 7.4.1.

Credits

- Rachid Allam (zhero;)
- Yasser Allam (inzo\_)

## How it is exploited

Exploitable over the network, with no account and no action from a user.

- **Confidentiality**: none
- **Integrity**: none
- **Availability**: high

CVSS:3.0/​AV:N/​AC:L/​PR:N/​UI:N/​S:U/​C:N/​I:N/​A:H

## References

- [Reference](https://github.com/remix-run/react-router/security/advisories/GHSA-4q56-crqp-v477 "https://github.com/remix-run/react-router/security/advisories/GHSA-4q56-crqp-v477")  
github.com/remix-run/react-router/security/advi…
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2025-31137 "https://nvd.nist.gov/vuln/detail/CVE-2025-31137")  
nvd.nist.gov/vuln/detail/CVE-2025-31137
- [Package](https://github.com/remix-run/react-router "https://github.com/remix-run/react-router")  
github.com/remix-run/react-router

A whole project to check? Paste its package.json in the [dependency check](https://inlinr.com/tools/dependency-check): every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.
