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
react-router
- If you run a version from 8.0.0 to before 8.3.1update to 8.3.1 or laterMinor version change: check the release notesreact-router 8.3.1 on its registry (opens in a new tab)
- If you run a version from 6.0.0 to before 7.18.3update to 7.18.3 or laterMajor version change: expect breaking changesreact-router 7.18.3 on its registry (opens in a new tab)
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 versions Fixed in >= 6.0.0, < 7.18.3 none stated >= 8.0.0, < 8.3.1 none stated react-routernpm
Affected versions Fixed in from 8.0.0 to before 8.3.1 8.3.1 from 6.0.0 to before 7.18.3 7.18.3
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.