4.7medium
React Router: Cross-Site Scripting (XSS) - escapeHtml (JS-escape) used in HTML-attribute context for <meta refresh>
- Severity
- 4.7medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.63% (higher than 51% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-mjj8-rxh9-q8f5
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| remix-run react-router | >= 7.11.0, < 7.18.4, >= 8.0.0, < 8.4.0 | CVE List |
| react-router (npm) | from 8.0.0 before 8.4.0, from 7.11.0 before 7.18.4 | GitHub Advisory Database |
All scores
| GitHub_M | 4.7medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N |
| GitHub | 4.7medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
React Router’s unstable React Server Components support contains a cross-site scripting vulnerability when rendering redirects containing untrusted input, potentially allowing JavaScript execution in the application’s origin.
Affected Modes: RSC Data (unstable) and RSC Framework (unstable).
Exploitation requires an application to use attacker-controlled input as a redirect destination during server-side HTML rendering.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-139994 changed 2026-12-01 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-mjj8-rxh9-q8f5 changed 2026-12-01 | CC-BY-4.0 |
| NVD | CVE-2026-139994 changed 2026-12-01 | Public domain |