Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @react-router/express
  4. ›
  5. CVE-2025-31137

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

April 1, 2025

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.

References

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

Code Behaviors & Features

Detect and mitigate CVE-2025-31137 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 7.0.0 before 7.4.1

Fixed versions

  • 7.4.1

Solution

Upgrade to version 7.4.1 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')

Source file

npm/@react-router/express/CVE-2025-31137.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 00:15:25 +0000.