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.
Affected products
markdown-it: linkify-it
References4
- github.com/markdown-it/linkify-it/security/advisories/GHSA-v245… ExploitMitigationVendor Advisory
- github.com/markdown-it/linkify-it/security/advisories/GHSA-v245… ExploitMitigationVendor Advisory
- github.com/markdown-it/linkify-it/commit/105e5d77f7d119871d2b2d… Patch
- github.com/markdown-it/linkify-it/releases/tag/5.0.2 Release Notes
Metrics
- CVSS 3.1
-
7.5
HIGH
Score source: CNA
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - EPSS — exploit probability
- 0% percentile: 41 · as of 15 November 2026
- CWE
- CWE-407
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.