CVE-2026-33245

React Router vulnerable to XSS in unstable RSC redirect handling via javascript: redirect targets

Published Jun 2, 2026 CVSS 3.1 · 8 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability exists in React Router versions 7.7.0 through 7.13.1. The unstable React Server Components (RSC) redirect handling can execute untrusted javascript: URLs, leading to client-side XSS. Based on the description, it is inferred that the flaw results from a lack of validation of redirect targets (CWE-79). Based on the description, it is inferred that attackers can inject malicious scripts through redirect parameters, compromising the user’s browser and enabling credential theft or defacement.

Affected Systems

The vendor product is remix‑run’s React Router. Affected are all installations of React Router 7.7.0 through 7.13.1 that use the unstable React Server Components APIs for redirects. Versions prior to 7.7.0 or the patched 7.13.2 and later are not vulnerable.

Risk and Exploitability

The CVSS score of 8 indicates high severity. EPSS data is not available, but the vulnerability is not listed in CISA KEV, implying no known mass exploitation. Based on the description, it is inferred that exploitation requires that an application accepts redirect targets from untrusted sources while using the unstable RSC APIs. Based on the description, it is inferred that an attacker controlling that input can craft a redirect URL using the javascript: scheme that executes code in the user’s browser, giving them the same privileges as the victim. Given the high score and the potential for client-side compromise, the risk is moderate‑high.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade react-router to version 7.13.2 or later.
  • Disable or remove usage of the unstable React Server Components APIs for redirects if possible.
  • Validate or filter redirect target URLs, rejecting javascript: scheme and other unsafe protocols before processing.

Generated by OpenCVE AI on June 3, 2026 at 04:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-8646-j5j9-6r62 React Router vulnerable to XSS in unstable RSC redirect handling via javascript: redirect targets
History
Type Values Removed Values Added
First Time appeared Shopify
Shopify react-router
CPEs cpe:2.3:a:shopify:react-router:*:*:*:*:*:node.js:*:*
Vendors & Products Shopify
Shopify react-router
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Remix-run
Remix-run react-router
Vendors & Products Remix-run
Remix-run react-router
Type Values Removed Values Added
Description 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.
Title React Router vulnerable to XSS in unstable RSC redirect handling via javascript: redirect targets
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jun 3, 2026, 7:09 PM
Reserved
Mar 18, 2026, 2:42 AM
Status
Analyzed
Published
Jun 2, 2026, 8:16 PM
Modified
Jul 22, 2026, 7:10 PM
Severity
Moderate
Public date
Jun 2, 2026, 5:14 PM