CVE-2026-139994: React Router: Cross-site Scripting due to escapeHtml use in meta refresh HTML attributes
Published 2026-12-01 · Updated 2026-12-01 · Also known as GHSA-mjj8-rxh9-q8f5
Summary
React Router contains a cross-site scripting vulnerability due to improper escapeHtml use in meta refresh HTML attributes during server-side rendering. Engineering and security teams using unstable React Server Components features should update their dependencies.
Who is affected
Affected deployments are those using React Router's unstable RSC Data and RSC Framework modes. Exploitation requires an application to use attacker-controlled input as a redirect destination during server-side HTML rendering, potentially allowing JavaScript execution in the application's origin.
Exploitability
The vulnerability is exploitable over the network (AV:N) with low attack complexity (AC:L) requiring no privileges (PR:N), but it does require user interaction (UI:R). The impact is confined to changed scope (S:C) with low integrity impact (I:L), and no confidentiality or availability impact. EPSS is not yet available, and CISA KEV active exploitation is no.
Remediation
- Upgrade npm package react-router to version 8.4.0 or version 7.18.4.
How to check your project
- Check project dependency files (such as package.json) for npm package react-router versions introduced at 8.0.0 and fixed before 8.4.0, or introduced at 7.11.0 and fixed before 7.18.4.
Automated analysis of the published advisory data, generated 2026-12-01. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| npm | react-router |
>= 8.0.0, < 8.4.0 | 8.4.0 | npm install [email protected] |
| npm | react-router |
>= 7.11.0, < 7.18.4 | 7.18.4 | npm install [email protected] |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | None |
| User interaction | Required |
| Scope | Changed |
| Confidentiality | None |
| Integrity | Low |
| Availability | None |
FAQ
Which React Router modes are affected?
The unstable RSC Data and RSC Framework modes are affected.
What is required for successful exploitation?
Exploitation requires an application to use attacker-controlled input as a redirect destination during server-side HTML rendering.
Are there official fixes available?
Yes, fixes are available in versions 8.4.0 and 7.18.4 of react-router.
Original advisory description
References
- WEB https://github.com/remix-run/react-router/security/advisories/GHSA-mjj8-rxh9-q8f5
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-139994
- WEB https://github.com/remix-run/react-router/pull/15491
- WEB https://github.com/remix-run/react-router/pull/15492
- WEB https://github.com/remix-run/react-router/commit/c58d7152420614d6879db851aa1c74f826ddd573
- WEB https://github.com/remix-run/react-router/commit/e0c6b5bce96f249a71b1fc395000c6b2742c57d7
- PACKAGE https://github.com/remix-run/react-router
- WEB https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v840
- WEB https://github.com/remix-run/react-router/blob/v7/CHANGELOG.md#v7184
- WEB https://github.com/remix-run/react-router/releases/tag/[email protected]
- WEB https://github.com/remix-run/react-router/releases/tag/[email protected]
Source records: GHSA-mjj8-rxh9-q8f5 (OSV.dev).