Vulnerabilities/

LinkifyIt#match scan loop has quadratic algorithmic complexity

Severity:
High

Description

LinkifyIt.prototype.match — the package’s primary public API — has O(N²) algorithmic complexity for inputs containing many fuzzy links or emails. This is not a regex backtrack bug; it’s a structural issue in the JS-level scan loop that re-slices the input and re-runs unanchored regex searches on progressively shorter tails, N times.

Recommendation

Update the linkify-it package to the latest compatible version. Followings are version details:

References

Related Issues

Tags:
npm
linkify-it
Anything's wrong? Let us know Last updated on June 26, 2026