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)
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.