{"id":"CVE-2026-59887","published":"2026-07-08T15:58:12Z","modified":"2026-07-09T14:41:02Z","title":"linkify-it: Quadratic-complexity DoS via the `mailto:` validator scan-loop on attacker text","vendor":"markdown-it","product":"linkify-it","tier":"tail","description":{"text":"linkify-it is a links recognition library with full Unicode support. Prior to 5.0.2, the mailto: schema validator used by .test() and .match() can be invoked at every mailto: occurrence and scan the remaining input through src_email_name in lib/re.mjs, causing O(n^2) CPU consumption on crafted user text. This issue is fixed in version 5.0.2.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00644,"percentile":0.45433,"provenance":"source"},"cwes":[{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"references":[{"url":"https://github.com/markdown-it/linkify-it/security/advisories/GHSA-v245-v573-v5vm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/markdown-it/linkify-it/commit/105e5d77f7d119871d2b2d86ed208568eb3e7ffe","tags":["x_refsource_MISC"]},{"url":"https://github.com/markdown-it/linkify-it/releases/tag/5.0.2","tags":["x_refsource_MISC"]}],"priority":{"score":14.3,"factors":[{"name":"EPSS percentile","points":9.09},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"markdown-it","affectedVersions":[{"vendor":"markdown-it","product":"linkify-it","versions":["< 5.0.2"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-09T14:40:56.927532Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"linkify-it","vulnerableRanges":["<5.0.2"],"patched":["5.0.2"],"from":["GHSA-v245-v573-v5vm"],"provenance":"source"}],"summary":{"text":"The mailto: schema validator in linkify-it, a Unicode-aware links recognition library, rescans the remaining input each time a \"mailto:\" occurrence is encountered, due to the src_email_name pattern in lib/re.mjs, with quadratic (O(n^2)) processing cost. An unauthenticated remote attacker who can supply crafted text to an application using linkify-it's .test() or .match() functions can cause high CPU consumption and denial of service, with no user interaction or special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:17Z"},"euvd":{"id":"EUVD-2026-42321","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-48801","published":"2026-07-14","fixed":"5.0.1","kev":false,"link":{"from":"CVE-2026-48801","to":"CVE-2026-59887","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"npm:linkify-it","fromFixed":"5.0.1","toFixed":"5.0.2","daysApart":-6}]}},{"cve":"CVE-2026-59887","published":"2026-07-08","fixed":"5.0.2","kev":false}],"package":"npm:linkify-it"}}