Mend.io Vulnerability Database
The largest open source vulnerability database
What is a Vulnerability ID?
New vulnerability? Tell us about it!
CVE-2026-40181
Published:June 02, 2026
Updated:June 05, 2026
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.
Affected Packages
react-router (CDN_JS):
Affected version(s) >=6.7.0 <6.30.4
Fix Suggestion:
Update to version 6.30.4
react-router (CDN_JS):
Affected version(s) >=7.0.0 <7.14.1
Fix Suggestion:
Update to version 7.14.1
https://github.com/remix-run/react-router.git (GITHUB):
Affected version(s) >=react-router@6.7.0 <react-router@6.30.4
Fix Suggestion:
Update to version react-router@6.30.4
https://github.com/remix-run/react-router.git (GITHUB):
Affected version(s) >=react-router@7.0.0 <react-router@7.14.1
Fix Suggestion:
Update to version react-router@7.14.1
react-router (NPM):
Affected version(s) >=7.0.0 <7.14.1
Fix Suggestion:
Update to version 7.14.1
react-router (NPM):
Affected version(s) >=7.0.0 <7.14.1
Fix Suggestion:
Update to version 7.14.1
react-router (NPM):
Affected version(s) >=6.7.0 <6.30.4
Fix Suggestion:
Update to version 6.30.4
react-router (NPM):
Affected version(s) >=6.7.0 <6.30.4
Fix Suggestion:
Update to version 6.30.4
Do you need more information?
Contact Us
CVSS v4
Base Score:
6.6
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
HIGH
Vulnerable System Availability
NONE
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
Exploit Maturity
UNREPORTED
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
NONE
Weakness Type (CWE)
URL Redirection to Untrusted Site ('Open Redirect')
EPSS
Base Score:
0.03