CVE-2026-40181
MEDIUM 6.6CVSS 4.0React Router's same-origin redirect with path starting // causes open redirect via protocol-relative URL reinterpretation
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.
- Published
- 2 Jun 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-601
- Also known as
- GHSA-2j2x-hqr9-3h42
- Sources
- NVDJSONOSV GHSA-2j2x-hqr9-3h42JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 6.6 | 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | shopify | react-routercpe:2.3:a:shopify:react-router:*:*:*:*:*:node.js:*:* |
>= 6.7.0, < 6.30.4 | 6.30.4 |
| NVD | shopify | react-routercpe:2.3:a:shopify:react-router:*:*:*:*:*:node.js:*:* |
>= 7.0.0, < 7.14.1 | 7.14.1 |
| OSV | npm | react-router | >= 7.0.0, < 7.14.1 | 7.14.1 |
| OSV | npm | react-router | >= 6.7.0, < 6.30.4 | 6.30.4 |
| OSV | npm | @remix-run/router | >= 1.3.0, < 1.23.3 | 1.23.3 |
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
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 2 Jun 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 3 Jun 2026)