{"id":"GHSA-2j2x-hqr9-3h42","summary":"React Router's same-origin redirect with path starting // causes open redirect via protocol-relative URL reinterpretation","details":"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\u003e [!NOTE]\n\u003e This does not impact your React Router application if you are using [Declarative Mode](https://reactrouter.com/start/modes#declarative) (`\u003cBrowserRouter\u003e`)","aliases":["CVE-2026-40181"],"modified":"2026-08-04T21:30:09.965179227Z","published":"2026-06-03T20:58:01Z","database_specific":{"cwe_ids":["CWE-601"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2026-06-03T20:58:01Z","nvd_published_at":"2026-06-02T20:16:35Z"},"references":[{"type":"WEB","url":"https://github.com/remix-run/react-router/security/advisories/GHSA-2j2x-hqr9-3h42"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40181"},{"type":"WEB","url":"https://github.com/remix-run/react-router/commit/d77f6b1"},{"type":"PACKAGE","url":"https://github.com/remix-run/react-router"}],"affected":[{"package":{"name":"react-router","ecosystem":"npm","purl":"pkg:npm/react-router"},"ranges":[{"type":"SEMVER","events":[{"introduced":"7.0.0"},{"fixed":"7.14.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-2j2x-hqr9-3h42/GHSA-2j2x-hqr9-3h42.json"}},{"package":{"name":"react-router","ecosystem":"npm","purl":"pkg:npm/react-router"},"ranges":[{"type":"SEMVER","events":[{"introduced":"6.7.0"},{"fixed":"6.30.4"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-2j2x-hqr9-3h42/GHSA-2j2x-hqr9-3h42.json"}},{"package":{"name":"@remix-run/router","ecosystem":"npm","purl":"pkg:npm/%40remix-run/router"},"ranges":[{"type":"SEMVER","events":[{"introduced":"1.3.0"},{"fixed":"1.23.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-2j2x-hqr9-3h42/GHSA-2j2x-hqr9-3h42.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"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"}]}