cvelo
P3 · MediumCVSS 4.7EPSS 0.6%

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

  • CVE-2026-139994
  • GHSA-mjj8-rxh9-q8f5
  • EUVD-2026-139690

Description

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.

Text from the CVE.org record.

Recommendation

Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • remix-run react-router

    Affected versionsFixed in
    >= 7.11.0, < 7.18.4none stated
    >= 8.0.0, < 8.4.0none stated
  • react-routernpm

    Affected versionsFixed in
    from 8.0.0 to before 8.4.08.4.0
    from 7.11.0 to before 7.18.47.18.4

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.