Markdown-it linkify-it
linkify-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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.5high · scored by CNA · CWE-407
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
markdown-it linkify-it
- < 5.0.2
Fixed in 5.0.2
Mitigation
Upgrade linkify-it to 5.0.2 or later.
References
- Vendor advisory github.com/markdown-it/linkify-it/security/adv…
- Patch github.com/markdown-it/linkify-it/commit/105e5…
- Release notes github.com/markdown-it/linkify-it/releases/tag…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.