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.
Severity (CVSS)
| Base score | 7.5 |
|---|---|
| Severity | High |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Provided by | CNA |
Weaknesses
- CWE-407 — CWE-407: Inefficient Algorithmic Complexity
Affected products
| Vendor | Product | Versions |
|---|---|---|
| markdown-it | linkify-it | < 5.0.2 |
References
- https://github.com/markdown-it/linkify-it/security/advisories/GHSA-v245-v573-v5vm (x_refsource_CONFIRM)
- https://github.com/markdown-it/linkify-it/commit/105e5d77f7d119871d2b2d86ed208568eb3e7ffe (x_refsource_MISC)
- https://github.com/markdown-it/linkify-it/releases/tag/5.0.2 (x_refsource_MISC)
Generated from the official CVE List on 09 Jul 2026 07:08 UTC.