{"id":"GHSA-x8j4-g9rr-8j87","summary":"React Router: Polynomial-time ReDoS in matchPath and matchRoutes trailing-slash handling","details":"A vulnerability in React Router’s route matching may cause excessive CPU consumption when processing specially crafted paths, potentially resulting in denial of service.\n\n**Affected Modes:** Declarative, Data, Framework, RSC Data (unstable), and RSC Framework (unstable).\n\nImpact may occur in the browser or on the server, depending on where route matching runs.","aliases":["CVE-2026-139998"],"modified":"2026-12-01T18:45:08.400829527Z","published":"2026-12-01T18:28:24Z","database_specific":{"cwe_ids":["CWE-1333","CWE-400"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2026-12-01T18:28:24Z","nvd_published_at":"2026-11-30T22:17:29Z"},"references":[{"type":"WEB","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"},{"type":"WEB","url":"https://github.com/remix-run/react-router/pull/15417"},{"type":"WEB","url":"https://github.com/remix-run/react-router/pull/15423"},{"type":"WEB","url":"https://github.com/remix-run/react-router/commit/308d206e9afe75f8ac20f1028fe93491302bbf8c"},{"type":"WEB","url":"https://github.com/remix-run/react-router/commit/6cc6f7a657e5808a510627ac6d9c0456ddeda9f0"},{"type":"PACKAGE","url":"https://github.com/remix-run/react-router"},{"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":"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"}],"affected":[{"package":{"name":"react-router","ecosystem":"npm","purl":"pkg:npm/react-router"},"ranges":[{"type":"SEMVER","events":[{"introduced":"6.0.0"},{"fixed":"7.18.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-x8j4-g9rr-8j87/GHSA-x8j4-g9rr-8j87.json"}},{"package":{"name":"react-router","ecosystem":"npm","purl":"pkg:npm/react-router"},"ranges":[{"type":"SEMVER","events":[{"introduced":"8.0.0"},{"fixed":"8.3.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/12/GHSA-x8j4-g9rr-8j87/GHSA-x8j4-g9rr-8j87.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"}]}