react-router
Affected
- introduced
7.0.0, fixed7.14.1(semver)
Fixed versions
7.14.1
Fix
- Fixed version
7.14.1npm install [email protected]
Advisory
Also known as: CVE-2026-40181
React Router's same-origin redirect with path starting // causes open redirect via protocol-relative URL reinterpretation
Certain URLs passed to the redirect function can trigger an open redirect to an external domain depending on the level of validation done by the application prior to returning the redirect.
> [!NOTE]
> This does not impact your React Router application if you are using Declarative Mode (<BrowserRouter>)
Medium Basis: The source's own band: MODERATE
7.0.0, fixed 7.14.1 (semver)7.14.1
7.14.1npm install [email protected]6.7.0, fixed 6.30.4 (semver)6.30.4
6.30.4npm install [email protected]1.3.0, fixed 1.23.3 (semver)1.23.3
1.23.3npm install @remix-run/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0