GitHub Advisoryadvisory · npm
GHSA-2w69-qvjg-hvjx React Router vulnerable to XSS via Open Redirects
HIGH
Official page ↗
- Aliases
- CVE-2026-22029
- Ecosystem
- npm
- Packages
- react-router, @remix-run/router
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
- Weaknesses
- CWE-79
- Reviewed
- 2026-01-08
Affected packages
• npm react-router: >= 7.0.0, < 7.12.0 → fixed in 7.12.0
• npm @remix-run/router: < 1.23.2 → fixed in 1.23.2
Description
React Router (and Remix v1/v2) SPA open navigation redirects originating from loaders or actions in Framework Mode, Data Mode, or the unstable RSC modes can result in unsafe URLs causing unintended javascript execution on the client. This is only an issue if developers are creating redirect paths from untrusted content or via an open redirect.
> [!NOTE]
> This does not impact applications that use Declarative Mode (``).
Related
Alias · CVE (1)
- CVE-2026-22029 React Router is a router for React. vulnerability
Weakness · CWE (1)
- CWE-79 Improper Neutralization of Input During Web Page Generation weakness