{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "7.0.0"
              },
              {
                "fixed": "7.4.1"
              }
            ]
          },
          "events": [
            {
              "introduced": "e8e3b004d94a949372e77ce97a543bff5bc6fb89"
            },
            {
              "fixed": "7350eef4e937e910308bcedd8254a4bba53058a6"
            }
          ],
          "repo": "https://github.com/remix-run/react-router",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-4q56-crqp-v477"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-444"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31137.json"
  },
  "details": "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.",
  "id": "CVE-2025-31137",
  "modified": "2026-03-10T21:50:30.230262401Z",
  "published": "2025-04-01T18:20:32.660Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/31xxx/CVE-2025-31137.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/remix-run/react-router/security/advisories/GHSA-4q56-crqp-v477"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-31137"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Remix and React Router allow URL manipulation via Host / X-Forwarded-Host headers"
}