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

Published Nov 30, 2026
·
Updated

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.

Affected Software

1 affected component
npm/react-router>=6.0.0<7.18.3, >=8.0.0<8.3.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 7.18.3
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 8.3.1

Event History

Nov 30, 2026
CVE Published
via MITRE·09:10 PM
Data Sourced
via MITRE·09:10 PM
DescriptionWeakness

Frequently Asked Questions

1

Which components can experience the denial-of-service impact?

Excessive CPU consumption can occur in the browser or on the server, depending on where route matching is performed. Declarative, Data, Framework, unstable RSC Data, and unstable RSC Framework applications are affected.

2

What upgrade versions remediate the issue?

Upgrade to React Router version 7.18.3 or 8.3.1, which contain the fix.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203