{"id":"CVE-2026-139998","summary":"React Router: Polynomial-time ReDoS in matchPath and matchRoutes trailing-slash handling","details":"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.","aliases":["GHSA-x8j4-g9rr-8j87"],"modified":"2026-11-30T23:00:09.912055460Z","published":"2026-11-30T21:10:46.533Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-1333","CWE-400"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139998.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139998.json"},{"type":"WEB","url":"https://github.com/remix-run/react-router/blob/main/CHANGELOG.md#v831"},{"type":"WEB","url":"https://github.com/remix-run/react-router/blob/v7/CHANGELOG.md#v7183"},{"type":"FIX","url":"https://github.com/remix-run/react-router/commit/308d206e9afe75f8ac20f1028fe93491302bbf8c"},{"type":"FIX","url":"https://github.com/remix-run/react-router/commit/6cc6f7a657e5808a510627ac6d9c0456ddeda9f0"},{"type":"FIX","url":"https://github.com/remix-run/react-router/pull/15417"},{"type":"FIX","url":"https://github.com/remix-run/react-router/pull/15423"},{"type":"WEB","url":"https://github.com/remix-run/react-router/releases/tag/react-router@7.18.3"},{"type":"WEB","url":"https://github.com/remix-run/react-router/releases/tag/react-router@8.3.1"},{"type":"ADVISORY","url":"https://github.com/remix-run/react-router/security/advisories/GHSA-x8j4-g9rr-8j87"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139998"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/remix-run/react-router","events":[{"introduced":"d85c049b22670a691e2ce6d4d6009c2b6aef4933"},{"fixed":"23166dfe7f61323f0d2775af67d2691f9ed0843d"},{"introduced":"36122b36a8c183dfbe4bcd278c585a80617c921e"},{"fixed":"da2a0f0948af60ba45d9590b427d5e58fe4b0109"},{"fixed":"308d206e9afe75f8ac20f1028fe93491302bbf8c"},{"fixed":"6cc6f7a657e5808a510627ac6d9c0456ddeda9f0"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"6.0.0"},{"fixed":"7.18.3"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"introduced":"8.0.0"},{"fixed":"8.3.1"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"fixed":"308d206e9afe75f8ac20f1028fe93491302bbf8c"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"6cc6f7a657e5808a510627ac6d9c0456ddeda9f0"}]},{"original_tag":"react-router@7.18.3","range":[{"fixed":"23166dfe7f61323f0d2775af67d2691f9ed0843d"}],"source":"REFERENCES_TAG"},{"source":"REFERENCES_TAG","original_tag":"react-router@8.3.1","range":[{"fixed":"da2a0f0948af60ba45d9590b427d5e58fe4b0109"}]}]}}],"versions":["react-router@8.3.0","create-react-router@8.3.0","@react-router/serve@8.3.0","@react-router/remix-routes-option-adapter@8.3.0","@react-router/node@8.3.0","@react-router/fs-routes@8.3.0","@react-router/express@8.3.0","@react-router/dev@8.3.0","@react-router/cloudflare@8.3.0","@react-router/architect@8.3.0","react-router@8.2.0","create-react-router@8.2.0","@react-router/serve@8.2.0","@react-router/remix-routes-option-adapter@8.2.0","@react-router/node@8.2.0","@react-router/fs-routes@8.2.0","@react-router/express@8.2.0","@react-router/dev@8.2.0","@react-router/cloudflare@8.2.0","@react-router/architect@8.2.0","react-router@8.1.0","create-react-router@8.1.0","@react-router/serve@8.1.0","@react-router/remix-routes-option-adapter@8.1.0","@react-router/node@8.1.0","@react-router/fs-routes@8.1.0","@react-router/express@8.1.0","@react-router/dev@8.1.0","@react-router/cloudflare@8.1.0","@react-router/architect@8.1.0","react-router@8.0.1","create-react-router@8.0.1","@react-router/serve@8.0.1","@react-router/remix-routes-option-adapter@8.0.1","@react-router/node@8.0.1","@react-router/fs-routes@8.0.1","@react-router/express@8.0.1","@react-router/dev@8.0.1","@react-router/cloudflare@8.0.1","@react-router/architect@8.0.1","react-router@8.0.0","create-react-router@8.0.0","@react-router/serve@8.0.0","@react-router/remix-routes-option-adapter@8.0.0","@react-router/node@8.0.0","@react-router/fs-routes@8.0.0","@react-router/express@8.0.0","@react-router/dev@8.0.0","@react-router/cloudflare@8.0.0","@react-router/architect@8.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139998.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}