CVE-2026-59887: Linkify It Redos Regex

Found a regular expression pattern using unbounded quantifiers (`+` or `*`) in a way that can lead to Regular Expression Denial of Service (ReDoS). An attacker can provide crafted input to cause catastrophic backtracking (O(n^2) complexity).

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0JS
greprules fetch cve-2026-59887-linkify-it-redos-regex --engine opengrep

Description

Found a regular expression pattern using unbounded quantifiers (`+` or `*`) in a way that can lead to Regular Expression Denial of Service (ReDoS). An attacker can provide crafted input to cause catastrophic backtracking (O(n^2) complexity).