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

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability: affected before 7.18.3, 8.3.1 (CNA); fix release not confirmed
- Status: published
- Published: 2026-11-30 · Modified: 2026-12-03
- Aliases: GHSA-x8j4-g9rr-8j87, CGA-3p85-3w63-964p, CGA-f267-xrf7-v22c, CGA-p8m4-v45w-rq95, CGA-w469-85m3-jww2, CGA-jp47-jgjp-j5xp, CGA-m48q-h5vr-3jg3
- Record: https://cvemate.com/vulnerability/CVE-2026-139998 · JSON: https://cvemate.com/vulnerability/CVE-2026-139998/json

## Description

```text
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.
```

## Signals

- CVSS: 8.7 high (v4.0, CVE.org) 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
- EPSS: 0.747%, percentile 56.233%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- chainguard airflow-2 (Chainguard): All versions (No fix recorded)
- chainguard vitess-24 (Chainguard): All versions (No fix recorded) \| \< 24.0.5-r16
- wolfi vitess-24 (Wolfi): All versions (No fix recorded) \| \< 24.0.5-r16
- Npm react-router (Npm): ≥ 6.0.0, \< 7.18.3 \| ≥ 8.0.0, \< 8.3.1
- remix-run react-router: ≥ 6.0.0, \< 7.18.3 \| ≥ 8.0.0, \< 8.3.1

## References

- <https://github.com/remix-run/react-router/security/advisories/GHSA-x8j4-g9rr-8j87>
- <https://github.com/remix-run/react-router/pull/15417>
- <https://github.com/remix-run/react-router/pull/15423>
- <https://github.com/remix-run/react-router/commit/308d206e9afe75f8ac20f1028fe93491302bbf8c>
- <https://github.com/remix-run/react-router/commit/6cc6f7a657e5808a510627ac6d9c0456ddeda9f0>
- <https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v831>
- <https://github.com/remix-run/react-router/blob/v7/CHANGELOG.md#v7183>
- <https://github.com/remix-run/react-router/releases/tag/react-router@7.18.3>
- <https://github.com/remix-run/react-router/releases/tag/react-router@8.3.1>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-139998>
- <https://github.com/remix-run/react-router>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139998.json>
- <https://www.tenable.com/cve/CVE-2026-139998>

---

Data as of 2026-12-05T04:25:04.863Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
