Skip to main content
← All vulnerabilities
CVE-2026-40181GHSA-2J2X-HQR9-3H42

React Router's same-origin redirect with path starting // causes open redirect via protocol-relative URL reinterpretation

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 7.14.1, 6.30.4, 1.23.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • remix-run react-router

    From 7.0.0 · fixed in 7.14.1; From 6.7.0 · fixed in 6.30.4

  • remix-run @remix-run/router

    From 1.3.0 · fixed in 1.23.3

  • react-routernpm

    From 7.0.0 · fixed in 7.14.1

  • react-routernpm

    From 6.7.0 · fixed in 6.30.4

  • @remix-run/routernpm

    From 1.3.0 · fixed in 1.23.3

References 1

GitHub · remix-run/react-router