MEDIUM · CVSS 3.1 4.7 CWE-79

CVE-2026-139994: React Router: Cross-site Scripting due to escapeHtml use in meta refresh HTML attributes

Published 2026-12-01 · Updated 2026-12-01 · Also known as GHSA-mjj8-rxh9-q8f5

Summary

React Router contains a cross-site scripting vulnerability due to improper escapeHtml use in meta refresh HTML attributes during server-side rendering. Engineering and security teams using unstable React Server Components features should update their dependencies.

Who is affected

Affected deployments are those using React Router's unstable RSC Data and RSC Framework modes. Exploitation requires an application to use attacker-controlled input as a redirect destination during server-side HTML rendering, potentially allowing JavaScript execution in the application's origin.

Exploitability

The vulnerability is exploitable over the network (AV:N) with low attack complexity (AC:L) requiring no privileges (PR:N), but it does require user interaction (UI:R). The impact is confined to changed scope (S:C) with low integrity impact (I:L), and no confidentiality or availability impact. EPSS is not yet available, and CISA KEV active exploitation is no.

Remediation

How to check your project

Automated analysis of the published advisory data, generated 2026-12-01. Not human-reviewed; verify against the official advisory. How this works.

Affected packages

EcosystemPackageAffected versionsFixed inUpgrade
npm react-router >= 8.0.0, < 8.4.0 8.4.0 npm install [email protected]
npm react-router >= 7.11.0, < 7.18.4 7.18.4 npm install [email protected]

CVSS 3.1 vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N

Attack vectorNetwork
Attack complexityLow
Privileges requiredNone
User interactionRequired
ScopeChanged
ConfidentialityNone
IntegrityLow
AvailabilityNone

FAQ

Which React Router modes are affected?

The unstable RSC Data and RSC Framework modes are affected.

What is required for successful exploitation?

Exploitation requires an application to use attacker-controlled input as a redirect destination during server-side HTML rendering.

Are there official fixes available?

Yes, fixes are available in versions 8.4.0 and 7.18.4 of react-router.

Original advisory description
React Router’s unstable React Server Components support contains a cross-site scripting vulnerability when rendering redirects containing untrusted input, potentially allowing JavaScript execution in the application’s origin. **Affected Modes:** RSC Data (unstable) and RSC Framework (unstable). Exploitation requires an application to use attacker-controlled input as a redirect destination during server-side HTML rendering.

References

Source records: GHSA-mjj8-rxh9-q8f5 (OSV.dev).