SB2022010804 - Inefficient regular expression complexity in markdown-it
Published: January 8, 2022 Updated: April 24, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 1 vulnerability.
1) Inefficient regular expression complexity (CVE-ID: CVE-2022-21670)
CWE-ID: CWE-1333 - Inefficient Regular Expression Complexity
CVSSv4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to cause a denial of service.
The vulnerability exists due to inefficient regular expression complexity in newline rule when parsing specially crafted markdown input. A remote attacker can send specially crafted input to cause a denial of service.
Inputs containing special patterns with lengths greater than 50,000 characters can significantly slow down the parser.
Remediation
Install update from vendor's website.