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

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.73%, higher than 55% of CVEs (2026-12-01)
- Published: 2026-11-30T21:10:46.533Z
- Modified: 2026-12-01T18:45:08.400Z
- Also known as: GHSA-x8j4-g9rr-8j87
- Weaknesses: CWE-400, CWE-1333
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- remix-run react-router: >= 6.0.0, < 7.18.3; >= 8.0.0, < 8.3.1
- react-router (npm): from 6.0.0 before 7.18.3; from 8.0.0 before 8.3.1

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/remix-run/react-router/security/advisories/GHSA-x8j4-g9rr-8j87> (web)
- <https://github.com/remix-run/react-router/pull/15417> (web)
- <https://github.com/remix-run/react-router/pull/15423> (web)
- <https://github.com/remix-run/react-router/commit/308d206e9afe75f8ac20f1028fe93491302bbf8c> (web)
- <https://github.com/remix-run/react-router/commit/6cc6f7a657e5808a510627ac6d9c0456ddeda9f0> (web)
- <https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v831> (web)
- <https://github.com/remix-run/react-router/blob/v7/CHANGELOG.md#v7183> (web)
- <https://github.com/remix-run/react-router/releases/tag/react-router@7.18.3> (web)
- <https://github.com/remix-run/react-router/releases/tag/react-router@8.3.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-139998> (advisory)
- <https://github.com/remix-run/react-router> (package)

## Sources

- CVE List: [CVE-2026-139998](https://www.cve.org/CVERecord?id=CVE-2026-139998), CVE Terms of Use, modified 2026-11-30
- GitHub Advisory Database: [GHSA-x8j4-g9rr-8j87](https://github.com/advisories/GHSA-x8j4-g9rr-8j87), CC-BY-4.0, modified 2026-12-01
- NVD: [CVE-2026-139998](https://nvd.nist.gov/vuln/detail/CVE-2026-139998), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139998 · Whole record: https://cve.day/CVE-2026-139998.json · Rebuilt by cve.day 2026-12-01T19:07:26.955Z
