linkify-it is a links recognition library with full Unicode support. Prior to 5.0.1, LinkifyIt.prototype.match, the package's primary public API, has O(N²) algorithmic complexity for inputs containing many fuzzy links or emails because the JavaScript-level scan loop re-slices input and re-runs unanchored regex searches on progressively shorter tails. Any service that synchronously renders untrusted Markdown with linkify:true on a request hot path can inherit a worker-process denial of service triggerable by a tens-of-KB request body. This issue is fixed in version 5.0.1.
Fix
Patch, vendor advisory and mitigation references on NVD 3
- https://github.com/markdown-it/linkify-it/commit/6be6d15e0641bf1daeaa977d500cabc743166159 Patch
- https://github.com/markdown-it/linkify-it/security/advisories/GHSA-22p9-wv53-3rq4 Exploit, Vendor Advisory
- https://github.com/markdown-it/linkify-it/security/advisories/GHSA-22p9-wv53-3rq4 Exploit, Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 8.7 · markdown-itNVD modified 2026-10-24 21:10
Affected (CPE criteria) 1
cpe:2.3:a:markdown-it:linkify-it:*:*:*:*:*:node.js:*:*
References 3
- https://github.com/markdown-it/linkify-it/commit/6be6d15e0641bf1daeaa977d500cabc743166159 Patch
- https://github.com/markdown-it/linkify-it/security/advisories/GHSA-22p9-wv53-3rq4 Exploit, Vendor Advisory
- https://github.com/markdown-it/linkify-it/security/advisories/GHSA-22p9-wv53-3rq4 Exploit, Vendor Advisory