Cross-site scripting in React Router redirect rendering
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
React Router from 7.11.0 before 7.18.4 and from 8.0.0 before 8.4.0 renders attacker-controlled redirect destinations into server-generated HTML without escaping them. The flaw is in the unstable RSC Data and RSC Framework modes and is classified under CWE-79. A remote attacker without privileges can craft redirect input that breaks out of its HTML attribute and runs JavaScript in the application's origin, with user interaction required.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| remix-run | react-router | 7.11.0 to before 7.18.4; 8.0.0 to before 8.4.0 | 7.18.4, 8.4.0 | Patch available | CNA |
| — | react-router (npm) | 8.0.0 to before 8.4.0 | 8.4.0 | Patch available | GHSA-mjj8-rxh9-q8f5 |
| — | react-router (npm) | 7.11.0 to before 7.18.4 | 7.18.4 | Patch available | GHSA-mjj8-rxh9-q8f5 |
- react-router Vendorremix-run Affected 7.11.0 to before 7.18.4; 8.0.0 to before 8.4.0 Fixed in 7.18.4, 8.4.0 Patch available CNA
- react-router (npm) Vendor— Affected 8.0.0 to before 8.4.0 Fixed in 8.4.0 Patch available GHSA-mjj8-rxh9-q8f5
- react-router (npm) Vendor— Affected 7.11.0 to before 7.18.4 Fixed in 7.18.4 Patch available GHSA-mjj8-rxh9-q8f5
Remediation
Upgrade react-router to 7.18.4 for the 7.x line and to 8.4.0 for the 8.x line.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
- Fix · CNA react-router (remix-run) Fixed in 7.18.4, 8.4.0
- Fix · GHSA-mjj8-rxh9-q8f5 react-router (npm) Fixed in 8.4.0 Advisory →
- Fix · GHSA-mjj8-rxh9-q8f5 react-router (npm) Fixed in 7.18.4 Advisory →
Timeline
- 2026-11-30 Threatist record created from CVE-2026-139994
- 2026-12-01 Alias added: GHSA-mjj8-rxh9-q8f5
- 2026-12-01 Fix available: npm/[email protected], npm/[email protected] · GHSA-mjj8-rxh9-q8f5
- 2026-12-01 CVSS score added · GHSA-mjj8-rxh9-q8f5
- 2026-12-01 Weakness changed · GHSA-mjj8-rxh9-q8f5
- 2026-12-01 11 new references · GHSA-mjj8-rxh9-q8f5
References
Other 10
- https://github.com/remix-run/react-router/security/advisories/GHSA-mjj8-rxh9-q8f5
- https://github.com/remix-run/react-router/pull/15491
- https://github.com/remix-run/react-router/pull/15492
- https://github.com/remix-run/react-router/commit/c58d7152420614d6879db851aa1c74f826ddd573
- https://github.com/remix-run/react-router/commit/e0c6b5bce96f249a71b1fc395000c6b2742c57d7
- https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v840
- https://github.com/remix-run/react-router/blob/v7/CHANGELOG.md#v7184
- https://github.com/remix-run/react-router/releases/tag/[email protected]
- https://github.com/remix-run/react-router/releases/tag/[email protected]
- https://github.com/remix-run/react-router
More remix-run vulnerabilities
- TI-2025-28449 React Router allows pre-render data spoofing on React-Router framework mode CVSS 3.1HIGH 8.2
- TI-2025-28448 React Router allows a DoS via cache poisoning by forcing SPA mode CVSS 3.1HIGH 7.5
- TI-2026-101197 Polynomial-time ReDoS in React Router route matching CVSS 4.0HIGH 8.7
- TI-2026-101194 Prototype pollution in React Router turbo-stream deserializer CVSS 3.1HIGH 7.4
- TI-2025-38117 React Router has Path Traversal in File Session Storage CVSS 3.1CRITICAL 9.1
- TI-2025-33550 Job Iteration API is vulnerable to OS Command Injection attack through its CsvEnumerator class CVSS 4.0HIGH 8.1
Sources
- CVE-2026-139994 · CVE Program
- CVE-2026-139994 · NVD
- GHSA-mjj8-rxh9-q8f5 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences