cvelo
P2 · HighCVSS 8.7EPSS 0.7%

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

  • CVE-2026-139998
  • GHSA-x8j4-g9rr-8j87
  • EUVD-2026-139696

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.

Text from the CVE.org record.

Recommendation

Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.

Affected

  • remix-run react-router

    Affected versionsFixed in
    >= 6.0.0, < 7.18.3none stated
    >= 8.0.0, < 8.3.1none stated
  • react-routernpm

    Affected versionsFixed in
    from 8.0.0 to before 8.3.18.3.1
    from 6.0.0 to before 7.18.37.18.3

Product versions from the CVE.org record.

Timeline

  1. Published

Related news

No article from the followed outlets names this vulnerability.