Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. react-router
  4. ›
  5. CVE-2026-139994

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

December 1, 2026

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

  • github.com/advisories/GHSA-mjj8-rxh9-q8f5
  • github.com/remix-run/react-router/blob/main/CHANGELOG.md
  • github.com/remix-run/react-router/blob/v7/CHANGELOG.md
  • github.com/remix-run/react-router/commit/c58d7152420614d6879db851aa1c74f826ddd573
  • github.com/remix-run/react-router/commit/e0c6b5bce96f249a71b1fc395000c6b2742c57d7
  • github.com/remix-run/react-router/pull/15491
  • github.com/remix-run/react-router/pull/15492
  • github.com/remix-run/react-router/releases/tag/react-router@7.18.4
  • github.com/remix-run/react-router/releases/tag/react-router@8.4.0
  • github.com/remix-run/react-router/security/advisories/GHSA-mjj8-rxh9-q8f5
  • nvd.nist.gov/vuln/detail/CVE-2026-139994

Code Behaviors & Features

Detect and mitigate CVE-2026-139994 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 7.11.0 before 7.18.4, all versions starting from 8.0.0 before 8.4.0

Fixed versions

  • 7.18.4
  • 8.4.0

Solution

Upgrade to versions 7.18.4, 8.4.0 or above.

Impact 4.7 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/react-router/CVE-2026-139994.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 01 Dec 2026 12:17:51 +0000.