React Router: Cross-Site Scripting (XSS) - escapeHtml (JS-escape) used in HTML-attribute context for <meta refresh>
CVE-2026-139994GHSA-mjj8-rxh9-q8f5Published 30 Nov 2026, 20:57 UTC
Real-world risk
1.8/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
4.7
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| react-routerWidespread | >= 8.0.0, < 8.4.0; >= 7.11.0, < 7.18.4 | 8.4.0, 7.18.4 |
| react-routerNiche | >= 7.11.0, < 7.18.4; >= 8.0.0, < 8.4.0 | 7.18.4, 8.4.0 |
What to do
Update to a fixed version: 8.4.0, 7.18.4.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.6% chance of exploitation in 30 days (percentile 51), as of 2026-12-02.
The arithmetic
- Prerequisites multiplied together0.700
- Threat T1: Nothing known0.850
- 10 × impact 0.3 × prerequisites 0.7 × threat 0.851.785
- Rounded to one decimal between 0.1 and 101.8
Exploitation and evidence timeline
- 30 Nov 2026 Published
- 2 Dec 2026 Risk 1.8 (cvss fallback)
Weakness
CWE-79
References
- https://github.com/remix-run/react-router/security/advisories/GHSA-mjj8-rxh9-q8f5vendor-advisory
- https://github.com/remix-run/react-router/pull/15491misc
- https://github.com/remix-run/react-router/pull/15492misc
- https://github.com/remix-run/react-router/commit/c58d7152420614d6879db851aa1c74f826ddd573misc
- https://github.com/remix-run/react-router/commit/e0c6b5bce96f249a71b1fc395000c6b2742c57d7misc
- https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v840misc
- https://github.com/remix-run/react-router/blob/v7/CHANGELOG.md#v7184misc
- https://github.com/remix-run/react-router/releases/tag/[email protected]misc
- https://github.com/remix-run/react-router/releases/tag/[email protected]misc
- https://nvd.nist.gov/vuln/detail/CVE-2026-139994
- https://github.com/advisories/GHSA-mjj8-rxh9-q8f5
- CVE-2026-139994 on CVE.org