{"id":"GHSA-2j2x-hqr9-3h42","revision":"5a804b04d39c4452b2e3032bba514037","records":[{"revision":"5a804b04d39c4452b2e3032bba514037","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-2j2x-hqr9-3h42","aliases":["CVE-2026-40181"],"title":"React Router's same-origin redirect with path starting // causes open redirect via protocol-relative URL reinterpretation","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`.\n\n> [!NOTE]\n> This does not impact your React Router application if you are using [Declarative Mode](https://reactrouter.com/start/modes#declarative) (`<BrowserRouter>`)","state":0,"publishedAt":"2026-06-03T20:58:01+00:00","modifiedAt":"2026-09-10T03:50:55.3486001+00:00","affected":[{"ecosystem":"npm","name":"react-router","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"7.0.0"},{"kind":"fixed","version":"7.14.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"react-router","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"6.7.0"},{"kind":"fixed","version":"6.30.4"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"@remix-run/router","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"1.3.0"},{"kind":"fixed","version":"1.23.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V4","vector":"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","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/remix-run/react-router/security/advisories/GHSA-2j2x-hqr9-3h42","https://nvd.nist.gov/vuln/detail/CVE-2026-40181","https://github.com/remix-run/react-router/commit/d77f6b1","https://github.com/remix-run/react-router"],"sourceUrl":"https://github.com/advisories/GHSA-2j2x-hqr9-3h42","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-2j2x-hqr9-3h42","identifiers":["GHSA-2j2x-hqr9-3h42","CVE-2026-40181"]},"retained":false,"historicalAffected":[]}],"coverage":[]}