GHSA-2j2x-hqr9-3h42
React Router's same-origin redirect with path starting // causes open redirect via protocol-relative URL reinterpretation
En bref
- Publiée
- Mise à jour
- CVE
- CVE-2026-40181
- 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
Description
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](https://reactrouter.com/start/modes#declarative) (`<BrowserRouter>`)
Paquets affectés
| Paquet | Versions |
|---|---|
| npm · react-router | introduced 7.0.0, fixed 7.14.1 |
| npm · react-router | introduced 6.7.0, fixed 6.30.4 |
| npm · @remix-run/router | introduced 1.3.0, fixed 1.23.3 |
Références
- https://github.com/remix-run/react-router/security/advisories/GHSA-2j2x-hqr9-3h42 WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-40181 ADVISORY
- https://github.com/remix-run/react-router/commit/d77f6b1 WEB
- https://github.com/remix-run/react-router PACKAGE
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |