Skip to main content

React Router CVE-2026-53667

| EUVDEUVD-2026-49629 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-07-23 https://github.com/remix-run/react-router GHSA-h8fp-f39c-q6mh
6.1
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker controls RSC data source
  2. Delivery
    Inject javascript: URL as redirect target
  3. Exploit
    Victim visits RSC-rendered route
  4. Execution
    RSCErrorHandler processes unvalidated redirect
  5. Persist
    Browser executes attacker JavaScript
  6. Impact
    Session/credential exfiltration

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires three concrete conditions to be simultaneously true: (1) the application must be using the explicitly opt-in unstable RSC APIs in React Router (this is a non-default, experimental feature - standard React Router deployments using stable APIs are not affected); (2) the attacker must control or influence the redirect target value returned via the RSC data/error path, meaning the application fetches or processes redirect destinations from an untrusted external source within RSC components; and (3) a victim user must visit the affected route and trigger the RSC error handler (UI:R). Exploitation is limited to React Router versions 7.11.0-7.17.x. Applications on stable APIs, on versions below 7.11.0, or already upgraded to 7.18.0 are not exploitable.

Impact

The CVSS 3.1 score of 6.9 (AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N) correctly reflects the high complexity constraint - exploitation requires the application to be running with the explicitly opt-in unstable RSC APIs enabled, which is a non-default, pre-production feature as of the affected version range. No EPSS data was supplied; without it, exploitation probability cannot be quantified numerically. KEV status is absent, and no public exploit code is identified, making this a medium real-world priority despite the High confidentiality impact from scope change. The most significant limiting factor is the requirement for unstable RSC API usage, which restricts exposure to early-adopter or cutting-edge deployments rather than the broad React Router install base. The scope change (S:C) is justified because successful XSS escapes the application's trust boundary to the victim's browser session. Risk is real for RSC early adopters but negligible for the majority of the install base using stable APIs.

Exploit ScenarioDerived

An attacker who can influence the redirect target returned by an untrusted RSC data source (e.g., a server-rendered component fetching from an attacker-controlled API) supplies a javascript: scheme URL as the redirect destination. When a victim user navigates to the affected route and triggers the RSC error handling path, the RSCErrorHandler either sets window.location.href to the javascript: URL (executing attacker JS in the page context) or emits a meta http-equiv='refresh' tag pointing to it (triggering script execution in browsers that honor such redirects). No public proof-of-concept code has been identified at time of analysis.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 23, 2026

Cross-site scripting in React Router's unstable RSC (React Server Components) error handling path allows network-based attackers to execute arbitrary JavaScript in a victim's browser via attacker-controlled redirect targets. Affected are React Router npm versions 7.11.0 through 7.17.x when the unstable RSC APIs are explicitly enabled; the vulnerability arises because the RSCErrorHandler component failed to validate the protocol of redirect URLs before assigning them to window.location.href or injecting them into a meta http-equiv='refresh' tag. This is a follow-up to GHSA-8646-j5j9-6r62, indicating the prior fix left a residual code path unvalidated. No public exploit code or CISA KEV listing is identified at time of analysis.

RemediationAI

Upgrade react-router to version 7.18.0 or later; this is the vendor-confirmed patched release per the GitHub advisory GHSA-h8fp-f39c-q6mh and CHANGELOG at https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v7180. The fix is implemented via commit ce596e823f0d7b883a433af1d5a839a8b9fe0242 (PR #15177). If an immediate upgrade is not possible, the most effective workaround is to disable or avoid use of the unstable RSC APIs entirely, as the vulnerability is exclusively in that code path; removing RSC API usage eliminates exposure with no other functional trade-off for stable-API consumers. There is no known in-place configuration knob to harden the RSCErrorHandler without patching.

Affected VersionsENISA

react-router 7.11.0, < 7.18.0

Affected Packages

npm react-router fix: 7.18.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

React Router v7 (pkg:npm/react-router) introduced experimental React Server Components (RSC) support. The RSCErrorHandler component in packages/react-router/lib/hooks.tsx is responsible for handling redirect responses that surface as errors from the RSC render pipeline. In the vulnerable code path, redirect targets sourced from untrusted RSC responses were parsed and passed directly - without protocol validation - to window.location.href (client-side) and to a meta http-equiv='refresh' content attribute (server-side no-JS path). CWE-79 (Improper Neutralization of Input During Web Page Generation, XSS) applies because attacker-supplied values like 'javascript:...' or 'about:' scheme URLs were reflected into execution contexts without sanitization. The fix imports hasInvalidProtocol from the router module and applies it before any URL is consumed, blocking non-http(s) schemes in redirect targets.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
vuln.today AI 6.9 MEDIUM

AC:H reflects the non-default unstable RSC API requirement; S:C and C:H reflect XSS scope escape with session-theft potential; I:L for limited DOM manipulation; A:N as availability is unaffected.

3.1 AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
SUSE 8.2 HIGH
AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
Red Hat 6.9 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

Lifecycle Timeline

2
CVSS changed
Aug 03, 2026 - 14:07 NVD
6.9 (MEDIUM) 6.1 (MEDIUM)
CVE Published
Jul 23, 2026 - 19:35 github-advisory
MEDIUM 6.9

DescriptionNVD

This is a follow up to https://github.com/remix-run/react-router/security/advisories/GHSA-8646-j5j9-6r62. React Router was alerted of a code path in the (unstable) RSC error handling path in which redirects from untrusted sources could still result in an XSS vector via attacker-supplied redirect targets

> [!NOTE] > This only affects your application if you are using the unstable RSC APIs

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 21 npm packages depend on react-router (6 direct, 15 indirect)

Ecosystem-wide dependent count for version 7.11.0.

Threat Intelligence Overview

EPSS Score
0.4%
Top 72% exploitable
Prevalence
High
widely-used React routing library with millions of weekly npm downloads
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA Vendor GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Module for Package Hub 15 SP7 Not-Affected
SUSE Linux Enterprise Module for SAP Applications 15 SP7 Affected
SUSE Linux Enterprise Server 16.0 Not-Affected
SUSE Linux Enterprise Server 16.0 Not-Affected
SUSE Linux Enterprise Server 16.1 Not-Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy