CVE-2026-33245: React Router vulnerable to XSS in unstable RSC redirect handling via javascript: redirect targets
React Router is a router for React. In versions 7.7.0 through 7.13.1, when using React Router's unstable React Server Components (RSC) APIs, there is a potential client-side Cross-Site Scripting (XSS) vulnerability in the RSC redirect handling if redirects come from untrusted sources. This does not impact applications that are not using the unstable RSC APIs in React Router. This is patched in version 7.13.2.
Other sources
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.
— GitHub
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
npm/react-routerto a version that resolves this vulnerability.Fixed in 7.13.2 - Upgrade
Upgrade
react-routerto a version that resolves this vulnerability.Fixed in 7.13.2 - Configuration
When using React Router v7 unstable RSC APIs, ensure any redirects handled by the RSC redirect handling are not derived from untrusted sources.
React Router (unstable React Server Components (RSC) APIs) RSC redirect targets source trust = only allow redirects from trusted sources
Event History
Frequently Asked Questions
What is the severity of CVE-2026-33245?
CVE-2026-33245 has a severity score of 8, which is classified as high.
What type of vulnerability is CVE-2026-33245?
CVE-2026-33245 is a Cross-Site Scripting (XSS) vulnerability.
How can I mitigate the risks associated with CVE-2026-33245?
To mitigate CVE-2026-33245, ensure that redirects using the unstable RSC APIs are sourced from trusted entities.
Which versions of React Router are affected by CVE-2026-33245?
CVE-2026-33245 affects React Router versions from 7.7.0 through 7.13.1.
What software products utilize the affected React Router version in CVE-2026-33245?
Affected software includes npm/react-router, Shopify React-router, and IBM API Connect.