All vulnerabilities

npm

CVE-2026-139994

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

Severity
Medium 4.7
Published
1 Dec 2026
Last changed
1 Dec 2026
Added to UpHeron
1 Dec 2026
Fixed in
7.18.4, 8.4.0
Exploit chance
0.6% in the next 30 daysHigher than 51% of CVEs. EPSS by FIRST, 1 Dec 2026
Weakness
Cross-site scripting (CWE-79)
Attack
Over the network · No login needed · Needs someone to click or open something
Attacker can
Change some data
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:L/A:N
Also known as
GHSA-mjj8-rxh9-q8f5
Sources
OSV.dev and GitHub

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.

From the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
react-routernpm · osv:npm:react-router
  • From 7.11.0 before 7.18.4
  • From 8.0.0 before 8.4.0

About react-router

Weekly downloads (npm)
75,148,114npm, 1 Dec 2026

References