# GHSA-MJJ8-RXH9-Q8F5: React Router: Cross-site Scripting due to escapeHtml use in meta refresh HTML attributes

- Database: GitHub
- Severity: CVSS 4.7 (Medium)
- Published: 2026-12-01
- Modified: 2026-12-01

## Tracked as

- [CVE-2026-139994](https://cve.now/CVE-2026-139994.md): React Router cross-site scripting in meta refresh redirects

## Affected versions

- react-router (npm): from 8.0.0, fixed in 8.4.0
- react-router (npm): from 7.11.0, fixed in 7.18.4

## Description

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

- https://github.com/remix-run/react-router/security/advisories/GHSA-mjj8-rxh9-q8f5
- https://nvd.nist.gov/vuln/detail/CVE-2026-139994
- https://github.com/remix-run/react-router/pull/15491
- https://github.com/remix-run/react-router/pull/15492
- https://github.com/remix-run/react-router/commit/c58d7152420614d6879db851aa1c74f826ddd573
- https://github.com/remix-run/react-router/commit/e0c6b5bce96f249a71b1fc395000c6b2742c57d7
- https://github.com/remix-run/react-router
- 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

Page: https://cve.now/GHSA-MJJ8-RXH9-Q8F5

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
