Packages / react-router / Security
HighVulnerabilityGHSA-8646-j5j9-6r62CVE-2026-33245Published 3 Jun 2026
React Router vulnerable to XSS in unstable RSC redirect handling via javascript: redirect targets
Affected releases · react-router
- 7.x7.7.0 – 7.13.1Fixed in 7.13.2
On 7.x, the newest line:
npm install react-router@7.13.28.x
Not affected
8.0.0 – 8.5.0
8 releases, latest
7.x
Not affected
7.0.0 – 7.6.3
21 releases
Affected
7.7.0 – 7.13.1
18 releases
Fixed
7.13.2 – 7.18.4
13 releases
Is your project affected?
Paste your package.json, or type the range you declare for react-router. It is read in your browser and sent nowhere.
What happens
When using React Router v7's unstable RSC APIs, there exists a potential client-side XSS issue in the RSC redirect handling if redirects are coming from untrusted sources
[!NOTE] This only impacts your application if you are using the unstable RSC APIs in React Router.