Medium severity6.1NVD Advisory· Published Jun 2, 2026· Updated Aug 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 |
@remix-run/routernpm | >= 1.3.0, < 1.23.3 | 1.23.3 |
Affected products
12- osv-coords10 versionspkg:apk/chainguard/keycloak-26.5-iamguarded-compatpkg:apk/chainguard/keycloak-26.6-iamguarded-compatpkg:apk/wolfi/keycloak-26.5-iamguarded-compatpkg:apk/chainguard/keycloak-26.6pkg:apk/wolfi/keycloak-26.6pkg:apk/chainguard/vitess-24pkg:apk/wolfi/vitess-24pkg:rpm/opensuse/agama-web-ui&distro=openSUSE%20Leap%2016.0pkg:npm/react-routerpkg:apk/wolfi/keycloak-26.6-iamguarded-compat
< 26.5.7-r3+ 9 more
- (no CPE)range: < 26.5.7-r3
- (no CPE)range: < 26.6.4-r14
- (no CPE)range: < 26.5.7-r3
- (no CPE)range: < 26.6.4-r14
- (no CPE)range: < 26.6.4-r14
- (no CPE)range: < 24.0.1-r2
- (no CPE)range: < 24.0.1-r2
- (no CPE)range: < 17+673.b97ba64d6-160000.12.1
- (no CPE)range: >= 7.0.0, < 7.14.1
- (no CPE)range: < 26.6.4-r14
- Range: >=7.0.0 <7.14.1, >=6.7.0 <6.30.4
Patches
Vulnerability mechanics
References
4- 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
- github.com/remix-run/react-router/commit/d77f6b1ghsaWEB
News mentions
0No linked articles in our index yet.