CVE-2026-139998

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

Published Nov 30, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
React Router is a router for React. From 6.0.0 until 7.18.3 and 8.3.1, react Router's regular-expression-based route matching can perform excessive work when processing specially crafted long paths. Declarative, Data, Framework, unstable RSC Data, and unstable RSC Framework applications can consume excessive CPU in the browser or server, depending on where matching occurs, causing denial of service. This issue is fixed in versions 7.18.3 and 8.3.1.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-x8j4-g9rr-8j87 React Router: Polynomial-time ReDoS in matchPath and matchRoutes trailing-slash handling
History
Type Values Removed Values Added
First Time appeared Remix-run
Remix-run react-router
Vendors & Products Remix-run
Remix-run react-router
Type Values Removed Values Added
Description React Router is a router for React. From 6.0.0 until 7.18.3 and 8.3.1, react Router's regular-expression-based route matching can perform excessive work when processing specially crafted long paths. Declarative, Data, Framework, unstable RSC Data, and unstable RSC Framework applications can consume excessive CPU in the browser or server, depending on where matching occurs, causing denial of service. This issue is fixed in versions 7.18.3 and 8.3.1.
Title React Router: Polynomial-time ReDoS in matchPath and matchRoutes trailing-slash handling
Weaknesses CWE-1333
CWE-400
References
Metrics cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Dec 3, 2026, 4:43 PM
Reserved
Nov 30, 2026, 6:42 PM
Status
Received
Published
Nov 30, 2026, 10:17 PM
Modified
Dec 3, 2026, 4:18 PM