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
react-router
- If you run a version from 8.0.0 to before 8.4.0update to 8.4.0 or laterMinor version change: check the release notesreact-router 8.4.0 on its registry (opens in a new tab)
- If you run a version from 7.11.0 to before 7.18.4update to 7.18.4 or laterMinor version change: check the release notesreact-router 7.18.4 on its registry (opens in a new tab)
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 versions Fixed in >= 7.11.0, < 7.18.4 none stated >= 8.0.0, < 8.4.0 none stated react-routernpm
Affected versions Fixed in from 8.0.0 to before 8.4.0 8.4.0 from 7.11.0 to before 7.18.4 7.18.4
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.