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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-08T15:58:12.114Z
- Modified: 2026-10-25T17:10:00.197Z
- Also known as: GHSA-v245-v573-v5vm
- Weaknesses: CWE-407
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- markdown-it linkify-it: < 5.0.2; before 5.0.2
- linkify-it (npm): before 5.0.2

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/markdown-it/linkify-it/security/advisories/GHSA-v245-v573-v5vm> (exploit, mitigation, vendor-advisory, web)
- <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://nvd.nist.gov/vuln/detail/CVE-2026-59887> (advisory)
- <https://github.com/markdown-it/linkify-it> (package)

## Sources

- CVE List: [CVE-2026-59887](https://www.cve.org/CVERecord?id=CVE-2026-59887), CVE Terms of Use, modified 2026-07-09
- GitHub Advisory Database: [GHSA-v245-v573-v5vm](https://github.com/advisories/GHSA-v245-v573-v5vm), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-59887](https://nvd.nist.gov/vuln/detail/CVE-2026-59887), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-59887 · Whole record: https://cve.day/CVE-2026-59887.json · Rebuilt by cve.day 2026-11-25T22:59:27.400Z
