CVE-2026-59887Published Jul 8, 2026 · Jul 8Updated Oct 28
linkify-it: Quadratic-complexity DoS via the `mailto:` validator scan-loop on attacker text
markdown-it linkify-it
High7.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| linkify-it npm |
|
|
Original description
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.
From the CVE record · GitHub_M