Skip to content

react-router

React Router: Cross-Site Scripting (XSS) - escapeHtml (JS-escape) used in HTML-attribute context for <meta refresh>

CVE-2026-139994GHSA-mjj8-rxh9-q8f5Published 30 Nov 2026, 20:57 UTC

Real-world risk

1.8/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

4.7

scored by the vendor (CNA), CVSS 3.1

In plain words

No plain-language summary yet. The original description is below.

Original description (from GitHub_M)

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.

Am I affected?

ProductAffected versions (from the sources)Fixed in
react-routerWidespread>= 8.0.0, < 8.4.0; >= 7.11.0, < 7.18.48.4.0, 7.18.4
react-routerNiche>= 7.11.0, < 7.18.4; >= 8.0.0, < 8.4.07.18.4, 8.4.0

What to do

Update to a fixed version: 8.4.0, 7.18.4.

Why this score

FactorValueEvidence×
ImpactMinorReflected XSS, CSRF with low effect, open redirect, minor leakFrom the CVSS vector0.30
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededNoneNo accountFrom the CVSS vector1.00
Victim interactionRoutineA normal action: open a file, visit a page, click a linkFrom the CVSS vector0.70
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.6% chance of exploitation in 30 days (percentile 51), as of 2026-12-02.

The arithmetic
  1. Prerequisites multiplied together0.700
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.3 × prerequisites 0.7 × threat 0.851.785
  4. Rounded to one decimal between 0.1 and 101.8

How the score works

Exploitation and evidence timeline

  1. 30 Nov 2026 Published
  2. 2 Dec 2026 Risk 1.8 (cvss fallback)

Weakness

CWE-79

References

Get alerts for react-router

Free email or text alerts when a vulnerability in react-router reaches risk 8 or higher. Nothing else.