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
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 7.14.1, 6.30.4, 1.23.3
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
CISA's decision points: whether it is exploited, whether attacks can be automated, and how much control an attacker gets. Assessed (SSVC 2.0.3).What do these mean? →
- 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
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: partial
- 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