{"id":"CVE-2026-59887","summary":"linkify-it: Quadratic-complexity DoS via the `mailto:` validator scan-loop on attacker text","details":"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.","aliases":["GHSA-v245-v573-v5vm"],"modified":"2026-07-12T03:55:35.447072239Z","published":"2026-07-08T15:58:12.114Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-407"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59887.json"},"references":[{"type":"WEB","url":"https://github.com/markdown-it/linkify-it/releases/tag/5.0.2"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/59xxx/CVE-2026-59887.json"},{"type":"ADVISORY","url":"https://github.com/markdown-it/linkify-it/security/advisories/GHSA-v245-v573-v5vm"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-59887"},{"type":"FIX","url":"https://github.com/markdown-it/linkify-it/commit/105e5d77f7d119871d2b2d86ed208568eb3e7ffe"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/markdown-it/linkify-it","events":[{"introduced":"0"},{"fixed":"105e5d77f7d119871d2b2d86ed208568eb3e7ffe"},{"fixed":"50a0c914f834b201cab25ff4faefd1f832b37332"}],"database_specific":{"source":["AFFECTED_FIELD","REFERENCES"],"extracted_events":[{"introduced":"0"},{"fixed":"5.0.2"}]}}],"versions":["5.0.1","5.0.0","4.0.1","4.0.0","3.0.3","3.0.2","3.0.1","3.0.0","2.2.0","2.1.0","2.0.3","2.0.2","2.0.1","2.0.0","1.2.4","1.2.3","1.2.2","1.2.1","1.2.0","1.1.1","1.1.0","1.0.1","1.0.0","0.1.5","0.1.4","0.1.3","0.1.2","0.1.1","0.1.0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-59887.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}