{"id":"CVE-2026-40181","aliases":["CVE-2026-40181","GHSA-2j2x-hqr9-3h42"],"related":[],"kind":"vulnerability","state":"published","title":"React Router's same-origin redirect with path starting // causes open redirect via protocol-relative URL reinterpretation","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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>`)","format":"markdown","source":"ghsa"},{"lang":"es","text":"React Router es un router para React. En las versiones 7.0.0 a 7.14.0 y 6.7.0 a 6.30.3, ciertas URL pasadas a la función de redirección pueden desencadenar una redirección abierta a un dominio externo debido a que los valores de ruta que comienzan con // son reinterpretados como URL relativas al protocolo. El nivel de impacto depende de la validación realizada por la aplicación antes de devolver la redirección. Esto no impacta a las aplicaciones que usan el Modo Declarativo (<BrowserRouter>). Esto está parcheado en las versiones 7.14.1 y 6.30.4.","source":"nvd"}],"published":"2026-06-02T17:55:09.919Z","modified":"2026-09-10T03:50:55.348Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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":6.6,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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":6.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"}],"cwes":["CWE-601"],"affected":[{"ranges":[{"version":">= 7.0.0, < 7.14.1","status":"affected"},{"version":">= 6.7.0, < 6.30.4","status":"affected"}],"vendor":"remix-run","product":"react-router","source":"cvelist"},{"ranges":[{"version":">= 1.3.0, < 1.23.3","status":"affected"}],"vendor":"remix-run","product":"@remix-run/router","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"7.0.0","status":"affected","fixed":"7.14.1"}],"ecosystem":"npm","package":"react-router","purl":"pkg:npm/react-router","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"6.7.0","status":"affected","fixed":"6.30.4"}],"ecosystem":"npm","package":"react-router","purl":"pkg:npm/react-router","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.3.0","status":"affected","fixed":"1.23.3"}],"ecosystem":"npm","package":"@remix-run/router","purl":"pkg:npm/%40remix-run/router","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"6.7.0","fixed":"6.30.4"},{"status":"affected","introduced":"7.0.0","fixed":"7.14.1"}],"vendor":"shopify","product":"react-router","cpe":"cpe:2.3:a:shopify:react-router:*:*:*:*:*:node.js:*:*","source":"nvd"}],"references":[{"url":"https://github.com/remix-run/react-router/security/advisories/GHSA-2j2x-hqr9-3h42","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40181","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/remix-run/react-router/commit/d77f6b1","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/remix-run/react-router","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-06-03T15:55:42.346Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40181","url":"https://www.cve.org/CVERecord?id=CVE-2026-40181","licence":"CVE Terms of Use","modified":"2026-08-04T21:26:41.037Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2j2x-hqr9-3h42","url":"https://github.com/advisories/GHSA-2j2x-hqr9-3h42","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:55.348Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40181","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40181","licence":"Public domain","modified":"2026-08-04T22:17:14.340Z"}],"updatedAt":"2026-11-25T22:59:23.596Z","epss":{"score":0.00221,"percentile":0.13524,"date":"2026-12-01T12:00:22.000Z"}}