CVE-2026-139994
React Router: Cross-site Scripting due to escapeHtml use in meta refresh HTML attributes
Also known as GHSA-mjj8-rxh9-q8f5
AI summary AI generated
An attacker can supply a crafted redirect destination that breaks out of an HTML attribute during server rendering, executing JavaScript in the origin of React Router applications using RSC modes.
Mitigation
- Upgrade react-router to one of 8.4.0, 7.18.4 (or later in the same release line).
Who should check
- Projects that depend on npm package react-router (>= 8.0.0, < 8.4.0)
- Anyone running remix-run react-router >= 7.11.0, < 7.18.4; >= 8.0.0, < 8.4.0
Vulnerability facts
- Affected
- react-router >= 8.0.0, < 8.4.0
- Fixed in
- 8.4.0, 7.18.4
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 4.7 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: Required
- Scope: Changed (impact reaches other components)
- Confidentiality impact: None
- Integrity impact: Low
- Availability impact: None
- CWE
- CWE-79
- Modified
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 and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| npm react-router | >= 8.0.0, < 8.4.0 | 8.4.0, 7.18.4 | ghsa |
| remix-run react-router | >= 7.11.0, < 7.18.4; >= 8.0.0, < 8.4.0 | — | cvelist |
Versions mentioned in the description AI generated
Extracted by AI; each line quotes the description word for word. Source data above takes precedence.
- Affected: react-router versions from 7.11.0 until 7.18.4 and 8.4.0
From 7.11.0 until 7.18.4 and 8.4.0
- Fixed: react-router 7.18.4
This issue is fixed in versions 7.18.4 and 8.4.0
- Fixed: react-router 8.4.0
This issue is fixed in versions 7.18.4 and 8.4.0
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-139994. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-139994.md Affected: react-router >= 8.0.0, < 8.4.0 Fixed in: 8.4.0, 7.18.4 Steps: 1. Search this machine and project for react-router (npm), remix-run react-router: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
Technologies
References
Patches
Other
- https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v840
- https://github.com/remix-run/react-router/blob/v7/CHANGELOG.md#v7184
- https://github.com/remix-run/react-router/releases/tag/react-router@7.18.4
- https://github.com/remix-run/react-router/releases/tag/react-router@8.4.0
- https://nvd.nist.gov/vuln/detail/CVE-2026-139994
- https://github.com/advisories/GHSA-mjj8-rxh9-q8f5
FAQ
Is CVE-2026-139994 being exploited?
There is no confirmed exploitation: CVE-2026-139994 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.
How serious is CVE-2026-139994?
Medium: CVSS 4.7 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2026-139994?
react-router >= 8.0.0, < 8.4.0.
Is there a fix for CVE-2026-139994?
Yes. Fixed in 8.4.0, 7.18.4. Upgrade react-router to one of 8.4.0, 7.18.4 (or later in the same release line).
How do I check if I'm affected by CVE-2026-139994?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.
More react-router vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| HIGH 7.5 | CVE-2026-139995 React Router: Unauthenticated denial of service via unbounded route-manifest path expansion during SSR document rendering | Node.js+2 | ||
| HIGH 7.4 | CVE-2026-139996 React Router: Prototype Pollution via Vendored turbo-stream Deserializer | npm packages+1 |