Severity by source
AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N
Primary rating from NVD.
CVSS VectorNVD
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
Lifecycle Timeline
4Blast Radius
ecosystem impact- 11 npm packages depend on react-router (8 direct, 3 indirect)
Ecosystem-wide dependent count for version 7.7.0.
DescriptionNVD
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.
AnalysisAI
Client-side cross-site scripting in React Router 7.7.0 through 7.13.1 allows remote attackers to execute arbitrary script in a victim's browser when the application uses the unstable React Server Components (RSC) APIs and processes redirects originating from untrusted sources. The flaw is patched in 7.13.2; no public exploit identified at time of analysis and the vulnerability does not affect deployments that do not opt into the RSC APIs.
Technical ContextAI
React Router is the de facto routing library for React single-page and server-rendered applications, maintained by Remix (cpe:2.3:a:remix-run:react-router). The issue resides in the unstable React Server Components (RSC) redirect handling code path, which serializes redirect targets received from the server and re-emits them on the client. Because that target was not sanitized or constrained to safe URL schemes (e.g., http/https), an attacker-controlled redirect value can carry an executable payload such as a javascript: URI, fulfilling the CWE-79 (Improper Neutralization of Input During Web Page Generation) pattern as a DOM-style XSS sink reached via navigation rather than via rendered markup.
RemediationAI
Vendor-released patch: upgrade react-router to 7.13.2 or later, which corrects the RSC redirect handling per advisory GHSA-8646-j5j9-6r62 (https://github.com/remix-run/react-router/security/advisories/GHSA-8646-j5j9-6r62). If immediate upgrade is not possible, the most direct compensating control is to stop using the unstable RSC APIs until patched, since the rest of the router is unaffected; alternatively, validate every redirect target before passing it into the RSC redirect helpers by allow-listing same-origin paths or http(s) absolute URLs and rejecting javascript:, data:, and vbscript: schemes, accepting the trade-off that any legitimate cross-scheme redirect flow will need to be re-architected. Tightening a Content-Security-Policy to forbid inline script execution (no unsafe-inline, no javascript: in navigate-to) will blunt exploitation but may break existing inline handlers and should be tested in staging.
More in React Router
View allRemote code execution in React Router 7.0.0 through 7.14.1 affects applications running in Framework Mode by chaining an
Denial of service in React Router 7.0.0-7.14.x and @remix-run/server-runtime 2.10.0-2.17.4 allows remote unauthenticated
Client-side Cross-Site Scripting in React Router 7.7.0 through 7.13.1 affects applications using the unstable React Serv
Open redirect in React Router's programmatic `redirect()` function allows unauthenticated remote attackers to redirect u
React Router is a router for React. In @remix-run/react version prior to 2.17.3. [CVSS 8.2 HIGH]
React Router is a router for React. In @remix-run/react versions 1.15.0 through 2.17.0. [CVSS 7.6 HIGH]
React-Router versions up to 6.30.1 is affected by url redirection to untrusted site (open redirect) (CVSS 6.5).
React Router is a router for React. In @remix-run/server-runtime version prior to 2.17.3. [CVSS 6.5 MEDIUM]
React Router is a router for React. In @remix-run/router version prior to 1.23.2. [CVSS 8.0 HIGH]
Cross-site scripting in React Router's Framework Mode (versions 7.5.1-7.13.1) allows an authenticated attacker with infl
Same weakness CWE-79 – Cross-site Scripting (XSS)
View allVendor StatusVendor
SUSE
Severity: MediumShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-33988
GHSA-8646-j5j9-6r62