CVE-2026-59887

HIGH

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

Title source: cna
STIX 2.1

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.

Scores

CVSS v3 7.5
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-407
Status published
Products (1)
markdown-it/linkify-it < 5.0.2
Published Jul 08, 2026
Tracked Since Jul 08, 2026