Skip to main content

React Router CVE-2026-139994

| EUVDEUVD-2026-139690 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-30 security-advisories@github.com GHSA-mjj8-rxh9-q8f5
4.7
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

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

  1. Access
    Supply attacker-controlled redirect destination
  2. Exploit
    Server renders value unescaped into meta-refresh attribute
  3. Execution
    Victim's browser parses injected markup
  4. Impact
    Execute JavaScript in application origin

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 the application to run React Router's unstable RSC Data mode or RSC Framework mode AND to use attacker-controlled input as a redirect destination that is rendered into server-generated HTML (written unescaped into a <meta http-equiv="refresh" content="0;url=..."> attribute). Limiting factors: both affected modes are explicitly experimental/unstable and not enabled by default; the redirect value must be attacker-influenced rather than static; and a victim must load the server-rendered response (UI:R) for the injected script to execute. Applications not using RSC modes, or not feeding untrusted input into redirect locations, are not exposed.

Impact

This is a moderate, conditional XSS (CWE-79), not an urgent priority. The input CVSS of 4.7 (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N) reflects network reach and no authentication (PR:N) but required user interaction (UI:R) and a scope change (S:C) because injected script runs in the application's origin. No KEV listing and no EPSS score were provided, and no verified exploit code is referenced - only vendor commits, PRs, the changelog, and the GHSA advisory, which are fix artifacts, not weaponized exploits. The vuln.today decision label is 'this_month', consistent with a real-but-not-emergency issue. The dominant limiting signal is that both affected code paths are explicitly 'unstable' React Server Components features (RSC Data mode and RSC Framework mode) and exploitation further requires the application to route attacker-controlled input into a redirect destination during server-side HTML rendering - a narrow, non-default deployment pattern. So while react-router as a library is extremely widespread, the actually-vulnerable surface is small. One signal to verify independently: CVSS impact was scored C:N/I:L, but origin-level JavaScript execution typically also enables confidentiality impact (session/DOM access), which my independent assessment reflects.

Exploit ScenarioDerived

An application built on React Router's unstable RSC Data or RSC Framework mode uses untrusted input (e.g., a user-supplied 'next'/return URL) as a redirect destination. During server-side rendering, the attacker crafts a redirect value that breaks out of the meta-refresh 'content' attribute, so the server emits HTML that executes attacker JavaScript in the app's origin when a victim loads the response. No public, verified exploit code is referenced in the available data, and successful exploitation requires the victim to load the attacker-influenced rendered page (UI:R).

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

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

Alert me

AnalysisAIv1 – Nov 30, 2026

Cross-site scripting in React Router's experimental React Server Components modes (RSC Data and RSC Framework) lets an attacker-controlled redirect destination break out of the HTML attribute it is written into and execute JavaScript in the application's origin. The affected range is the npm react-router package from 7.11.0 before 7.18.4, and the 8.x line from 8.0.0 before 8.4.0; the flaw is reachable by unauthenticated remote attackers (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C) but only where an application both enables an unstable RSC mode and feeds untrusted input into a redirect location during server-side rendering, with a victim then loading the rendered response. Severity is moderate (4.7 as published, with the impact assessed as low confidentiality and low integrity), no public exploit code was identified at time of analysis, and vendor patches are released as 7.18.4 and 8.4.0.

RemediationAI

Vendor-released patch: upgrade react-router to 7.18.4 on the 7.x branch or 8.4.0 on the 8.x branch, which replace escapeHtml with an attribute-aware escapeAttribute helper when interpolating redirect locations into the meta refresh tag (commits c58d7152420614d6879db851aa1c74f826ddd573 and e0c6b5bce96f249a71b1fc395000c6b2742c57d7, PRs 15491 and 15492, advisory GHSA-mjj8-rxh9-q8f5). Where an immediate upgrade is not possible, the practical compensating controls are to stop using the unstable RSC Data and RSC Framework modes in production until patched, accepting the loss of that rendering path, or to ensure redirect destinations rendered during server-side HTML generation are never derived from request-controlled input - for example by mapping user input through a fixed allowlist of internal paths before redirecting, at the cost of blocking legitimate open-redirect-style flows to arbitrary destinations. Applications that do not use RSC rendering require no change for this specific issue.

Affected VersionsENISA

react-router 8.0.0, < 8.4.0
react-router 7.11.0, < 7.18.4

Affected Packages

npm react-router fix: 7.18.4, 8.4.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's unstable RSC support streams server-rendered HTML and, when a route redirect occurs, emits a meta refresh element of the form <meta http-equiv="refresh" content="0;url=LOCATION">. The redirect location is concatenated directly into the content attribute of that tag. Before the fix, the code applied escapeHtml(), which neutralizes &, <, > and the U+2028/U+2029 line separators but leaves double quotes untouched; a crafted redirect destination containing a quote character can therefore terminate the attribute value and inject new attributes or an event handler into the server-generated markup, which the victim's browser evaluates in the application's origin. This is a classic CWE-79 cross-site scripting flaw arising from context-mismatched output encoding: the value lands in an attribute context, so an attribute-aware escaper is required. The upstream commit moves an escapeAttribute() helper into the shared markup module and switches both the initial redirect and the retry redirect paths in routeRSCServerRequest from escapeHtml() to escapeAttribute(), which additionally encodes double quotes. The CVSS scope change (S:C) reflects that script runs with the origin's privileges; the UI:R component captures that a victim must load the poisoned server-rendered response, and the assessed impact is limited to low confidentiality and low integrity with no availability effect.

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

Vendor (github) PRIMARY 4.7 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
vuln.today AI 6.1 MEDIUM

Remote, no auth (PR:N) but victim must load the rendered page (UI:R); script runs in the app origin (S:C) enabling data read and page manipulation, so C:L/I:L.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

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

Lifecycle Timeline

2
Patch available
Nov 30, 2026 - 22:20 EUVD
CVE Published
Nov 30, 2026 - 21:17 cve.org
MEDIUM 4.7

DescriptionCVE.org

React Router is a router for React. From 7.11.0 until 7.18.4 and 8.4.0, react Router's unstable RSC Data mode and RSC Framework mode render redirects containing an attacker-controlled redirect destination into server-generated HTML without safely escaping the value. During server-side HTML rendering, crafted redirect input can break out of its HTML attribute context and execute JavaScript in the application's origin. This issue is fixed in versions 7.18.4 and 8.4.0.

Threat Intelligence Overview

EPSS Score
0.6%
Top 49% exploitable
Prevalence
High
react-router is near-ubiquitous, but only unstable RSC modes are affected
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA 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.6%
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
Medium
Technical Impact
Partial

Priority Score

25
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +24
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.

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