Medium severity6.1NVD Advisory· Published Jun 2, 2026· Updated Jun 4, 2026
CVE-2026-40181
CVE-2026-40181
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 (). This is patched in versions 7.14.1 and 6.30.4.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
react-routernpm | >= 7.0.0, < 7.14.1 | 7.14.1 |
react-routernpm | >= 6.7.0, < 6.30.4 | 6.30.4 |
Affected products
7- Range: >=7.0.0 <7.14.1, >=6.7.0 <6.30.4
- osv-coords5 versionspkg:apk/chainguard/keycloak-26.6pkg:apk/chainguard/vitess-24pkg:apk/wolfi/keycloak-26.6pkg:apk/wolfi/vitess-24pkg:npm/react-router
< 26.6.4-r14+ 4 more
- (no CPE)range: < 26.6.4-r14
- (no CPE)range: < 24.0.1-r2
- (no CPE)range: < 26.6.4-r14
- (no CPE)range: < 24.0.1-r2
- (no CPE)range: >= 7.0.0, < 7.14.1
Patches
Vulnerability mechanics
References
3- github.com/advisories/GHSA-2j2x-hqr9-3h42ghsaADVISORY
- github.com/remix-run/react-router/security/advisories/GHSA-2j2x-hqr9-3h42nvdVendor AdvisoryWEB
- nvd.nist.gov/vuln/detail/CVE-2026-40181ghsaADVISORY
News mentions
0No linked articles in our index yet.