Read the docs

Cross-site scripting in React Router redirect rendering

Priority LOW 37CWE-79Published · Updated

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

Fix Fixed react-router (remix-run): 7.18.4, 8.4.0react-router (npm): 8.4.0, 7.18.4

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
remix-runreact-router7.11.0 to before 7.18.4; 8.0.0 to before 8.4.07.18.4, 8.4.0Patch availableCNA
—react-router (npm)8.0.0 to before 8.4.08.4.0Patch availableGHSA-mjj8-rxh9-q8f5
—react-router (npm)7.11.0 to before 7.18.47.18.4Patch availableGHSA-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

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:shopify:react-router:*:*:*:*:*:*:*:*——remix-run
  • cpe:2.3:a:shopify:react-router:*:*:*:*:*:*:*:* Versions — — ·remix-run

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

  1. 2026-11-30 Threatist record created from CVE-2026-139994
  2. 2026-12-01 Alias added: GHSA-mjj8-rxh9-q8f5
  3. 2026-12-01 Fix available: npm/[email protected], npm/[email protected] · GHSA-mjj8-rxh9-q8f5
  4. 2026-12-01 CVSS score added · GHSA-mjj8-rxh9-q8f5
  5. 2026-12-01 Weakness changed · GHSA-mjj8-rxh9-q8f5
  6. 2026-12-01 11 new references · GHSA-mjj8-rxh9-q8f5

References

  • 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
See all 36 →

Sources