All vulnerabilities

npm

CVE-2026-139998

React Router: Polynomial-time ReDoS in matchPath and matchRoutes trailing-slash handling

Severity
High
Published
1 Dec 2026
Last changed
1 Dec 2026
Added to UpHeron
1 Dec 2026
Fixed in
7.18.3, 8.3.1
Exploit chance
0.7% in the next 30 daysHigher than 55% of CVEs. EPSS by FIRST, 1 Dec 2026
Weakness
Regular expression denial of service (ReDoS) (CWE-1333)Uncontrolled resource consumption (CWE-400)
Also known as
GHSA-x8j4-g9rr-8j87
Sources
OSV.dev and GitHub

Description

A vulnerability in React Router’s route matching may cause excessive CPU consumption when processing specially crafted paths, potentially resulting in denial of service.

Affected Modes: Declarative, Data, Framework, RSC Data (unstable), and RSC Framework (unstable).

Impact may occur in the browser or on the server, depending on where route matching runs.

From the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
react-routernpm · osv:npm:react-router
  • From 6.0.0 before 7.18.3
  • From 8.0.0 before 8.3.1

About react-router

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

References