# CVE-2026-139994: React Router: Cross-site Scripting due to escapeHtml use in meta refresh HTML attributes

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **CWE:** CWE-79
- **Aliases:** GHSA-mjj8-rxh9-q8f5
- **Published:** 2026-11-30T20:57:32.630Z
- **Modified:** 2026-12-01T02:31:26.000Z

> **AI summary (AI-generated, claude-haiku-5-5):** 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.

## 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

## 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

- npm `react-router`: affected \>= 8.0.0, \< 8.4.0; fixed 8.4.0, 7.18.4 (ghsa)
- remix-run react-router: \>= 7.11.0, \< 7.18.4; \>= 8.0.0, \< 8.4.0 (cvelist)

## Technologies

npm packages, React (AI-matched)

## Mitigation

- Upgrade react-router to one of 8.4.0, 7.18.4 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://github.com/remix-run/react-router/security/advisories/GHSA-mjj8-rxh9-q8f5>
- patch: <https://github.com/remix-run/react-router/pull/15491>
- patch: <https://github.com/remix-run/react-router/pull/15492>
- patch: <https://github.com/remix-run/react-router/commit/c58d7152420614d6879db851aa1c74f826ddd573>
- patch: <https://github.com/remix-run/react-router/commit/e0c6b5bce96f249a71b1fc395000c6b2742c57d7>
- other: <https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v840>
- other: <https://github.com/remix-run/react-router/blob/v7/CHANGELOG.md#v7184>
- other: <https://github.com/remix-run/react-router/releases/tag/react-router@7.18.4>
- other: <https://github.com/remix-run/react-router/releases/tag/react-router@8.4.0>
- other: <https://nvd.nist.gov/vuln/detail/CVE-2026-139994>
- other: <https://github.com/advisories/GHSA-mjj8-rxh9-q8f5>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-139994>
- GitHub Advisory Database: CC-BY 4.0 <https://github.com/advisories/GHSA-mjj8-rxh9-q8f5> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2026-139994> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-139994>
