CVE-2026-139994: React Router: Cross-Site Scripting (XSS) - escapeHtml (JS-escape) used in HTML-attribute context for <meta refresh>

Published Nov 30, 2026
·
Updated

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.

Affected Software

1 affected component
npm/react-router>=7.11.0<7.18.4, >=8.0.0<8.4.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 7.18.4
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 8.4.0

Event History

Nov 30, 2026
CVE Published
via MITRE·08:57 PM
Data Sourced
via MITRE·08:57 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which applications are affected?

Applications using React Router's unstable RSC Data mode or RSC Framework mode with server-side HTML rendering are affected if they use versions from 7.11.0 before 7.18.4, or version 8.4.0 as identified in the advisory.

2

What does an attacker need to exploit this issue?

An attacker needs to supply a crafted redirect destination that is rendered into the server-generated HTML. Exploitation also requires a user interaction, as reflected by the UI:R vector.

3

What is the impact of successful exploitation?

A crafted redirect value can escape its HTML attribute context in a meta refresh element and execute JavaScript in the application's origin. The supplied severity vector indicates integrity impact but no direct confidentiality or availability impact.

4

How can this be remediated?

Upgrade React Router to version 7.18.4 or the fixed 8.4.0 release.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203