CVE-2026-40181
Analyzed
Analyzed - Analysis Complete
Open Redirect Vulnerability in React Router
Publication date: 2026-06-02
Last updated on: 2026-06-04
Assigner: GitHub, Inc.
Description
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.
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| shopify | react-router | From 6.7.0 (inc) to 6.30.4 (exc) |
| shopify | react-router | From 7.0.0 (inc) to 7.14.1 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-601 | The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. |