CVE-2026-40181

Source
https://cve.org/CVERecord?id=CVE-2026-40181
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-40181.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2026-40181
Aliases
Downstream
Related
Published
2026-06-02T17:55:09.919Z
Modified
2026-06-18T03:56:40.764748169Z
Severity
  • 6.6 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U CVSS Calculator
Summary
React Router's same-origin redirect with path starting // causes open redirect via protocol-relative URL reinterpretation
Details

React Router is a router for React. In versions 7.0.0 through 7.14.0 and 6.7.0 through 6.30.3, certain URLs passed to the redirect function can trigger an open redirect to an external domain due to path values starting with // being reinterpreted as protocol-relative URLs. The level of impact depends on the validation done by the application prior to returning the redirect. This does not impact applications using Declarative Mode (<BrowserRouter>). This is patched in versions 7.14.1 and 6.30.4.

Database specific
{
    "cna_assigner": "GitHub_M",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40181.json",
    "cwe_ids": [
        "CWE-601"
    ]
}
References

Affected packages

Git / github.com/remix-run/react-router

Affected ranges

Type
GIT
Repo
https://github.com/remix-run/react-router
Events
Database specific
{
    "source": "CPE_RANGE",
    "extracted_events": [
        {
            "introduced": "6.7.0"
        },
        {
            "fixed": "6.30.4"
        },
        {
            "introduced": "7.0.0"
        },
        {
            "fixed": "7.14.1"
        }
    ],
    "cpe": "cpe:2.3:a:shopify:react-router:*:*:*:*:*:node.js:*:*"
}

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-40181.json"