# CVE-2026-40181: React Router's same-origin redirect with path starting // causes open redirect via protocol-relative URL reinterpretation

- Severity: Medium 6.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-06-02T17:55:09.919Z
- Modified: 2026-09-10T03:50:55.348Z
- Also known as: GHSA-2j2x-hqr9-3h42
- Weaknesses: CWE-601
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- remix-run react-router: >= 7.0.0, < 7.14.1; >= 6.7.0, < 6.30.4
- remix-run @remix-run/router: >= 1.3.0, < 1.23.3
- react-router (npm): from 7.0.0 before 7.14.1; from 6.7.0 before 6.30.4
- @remix-run/router (npm): from 1.3.0 before 1.23.3
- shopify react-router: from 6.7.0 before 6.30.4; from 7.0.0 before 7.14.1

## Every score

- GitHub_M: CVSS:4.0 6.6 Medium `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`
- GitHub: CVSS:4.0 Medium `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`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/remix-run/react-router/security/advisories/GHSA-2j2x-hqr9-3h42> (vendor-advisory, 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

- CVE List: [CVE-2026-40181](https://www.cve.org/CVERecord?id=CVE-2026-40181), CVE Terms of Use, modified 2026-08-04
- GitHub Advisory Database: [GHSA-2j2x-hqr9-3h42](https://github.com/advisories/GHSA-2j2x-hqr9-3h42), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-40181](https://nvd.nist.gov/vuln/detail/CVE-2026-40181), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2026-40181 · Whole record: https://cve.day/CVE-2026-40181.json · Rebuilt by cve.day 2026-11-25T22:59:23.596Z
