# CVE-2026-40181: React Router's same-origin redirect with path starting // causes open redirect via protocol-relative URL reinterpretation

- Priority: **Routine**
- Reason: Not severe (CVSS 6.6, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-02 · Modified: 2026-08-04
- Aliases: CGA-7cj2-j79p-5mv7, CGA-89g7-86pv-x6fr, CGA-96m5-x9g9-r4xg, CGA-c379-f8xh-rm23, CGA-mfmw-cwr6-mr9p, CGA-qjpc-fv55-v865, CGA-qv72-w53x-g7qp, CGA-rfhx-43mp-3m86, CGA-w7m7-rf42-mcv5, CGA-wg6h-4hcc-h3q3, GHSA-2j2x-hqr9-3h42, CGA-3hp4-5xj2-qh4q, CGA-4jjp-4xhc-jjhr, CGA-7fq2-xcpj-pcm2, CGA-chc9-7983-pqjf
- Record: https://cvemate.com/vulnerability/CVE-2026-40181 · JSON: https://cvemate.com/vulnerability/CVE-2026-40181/json

## Description

```text
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.
```

## Signals

- CVSS: 6.6 medium (v4.0, CVE.org) 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
- EPSS: 0.221%, percentile 13.494%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- chainguard airflow-2 (Chainguard): All versions (No fix recorded)
- chainguard airflow-core-2 (Chainguard): All versions (No fix recorded)
- chainguard keycloak-26.5 (Chainguard): \< 26.5.7-r3
- chainguard keycloak-26.5-iamguarded-compat (Chainguard): \< 26.5.7-r3
- chainguard keycloak-26.6 (Chainguard): \< 26.6.4-r14
- chainguard keycloak-26.6-iamguarded-compat (Chainguard): \< 26.6.4-r14
- chainguard vitess-24 (Chainguard): \< 24.0.1-r2
- wolfi keycloak-26.5 (Wolfi): \< 26.5.7-r3
- wolfi keycloak-26.5-iamguarded-compat (Wolfi): \< 26.5.7-r3
- wolfi keycloak-26.6 (Wolfi): \< 26.6.4-r14
- wolfi keycloak-26.6-iamguarded-compat (Wolfi): \< 26.6.4-r14
- wolfi vitess-24 (Wolfi): \< 24.0.1-r2
- Npm react-router (Npm): ≥ 7.0.0, \< 7.14.1 \| ≥ 6.7.0, \< 6.30.4
- @remix-run router (Npm): ≥ 1.3.0, \< 1.23.3
- remix-run react-router: ≥ 7.0.0, \< 7.14.1 \| ≥ 6.7.0, \< 6.30.4
- remix-run @remix-run/router: ≥ 1.3.0, \< 1.23.3
- shopify react-router: ≥ 6.7.0, \< 6.30.4 \| ≥ 7.0.0, \< 7.14.1

## References

- <https://github.com/remix-run/react-router/security/advisories/GHSA-2j2x-hqr9-3h42>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40181.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40181>
- <https://github.com/remix-run/react-router/commit/d77f6b1>
- <https://github.com/remix-run/react-router>

---

Data as of 2026-12-05T04:47:36.536Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
