7.5High

CVE-2026-59887linkify-it: Quadratic-complexity DoS via the `mailto:` validator scan-loop on attacker text

markdown-it linkify-it Published: (4 months ago)

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.

Weakness (CWE): CWE-407

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
markdown-it linkify-it < 5.0.2

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:markdown-it:linkify-it:*:*:*:*:*:node.js:*:* < 5.0.2