CVE-2026-59887
HIGH 7.5CVSS 3.1linkify-it: Quadratic-complexity DoS via the `mailto:` validator scan-loop on attacker text
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.
- Published
- 8 Jul 2026
- Last modified
- 25 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-407
- Also known as
- GHSA-v245-v573-v5vm
- Sources
- NVDJSONOSV GHSA-v245-v573-v5vmJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | markdown-it | linkify-itcpe:2.3:a:markdown-it:linkify-it:*:*:*:*:*:node.js:*:* |
< 5.0.2 | 5.0.2 |
| OSV | npm | linkify-it | < 5.0.2 | 5.0.2 |
References
- https://github.com/markdown-it/linkify-it/commit/105e5d77f7d119871d2b2d86ed208568eb3e7ffe · Patch, WEB
- https://github.com/markdown-it/linkify-it/releases/tag/5.0.2 · Release Notes, WEB
- https://github.com/markdown-it/linkify-it/security/advisories/GHSA-v245-v573-v5vm · Exploit, Mitigation, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-59887 · ADVISORY
- https://github.com/markdown-it/linkify-it · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 8 Jul 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 21 Jul 2026)