5.3Medium
CVE-2026-121438Mistune before 3.3.3 Denial of Service via Balanced Bracket Link Parsing
Description
Mistune before 3.3.3 contains a denial of service vulnerability in InlineParser.parse_link that allows attackers to cause quadratic CPU growth by supplying balanced nested brackets. Attackers can submit crafted Markdown with thousands of nested bracket pairs not forming a valid link, triggering repeated _contains_nested_link scans that exhaust CPU in parsing applications.
Weakness (CWE):
CWE-400
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
| Vendor | Product | Versions | |
|---|---|---|---|
| lepture | mistune | < 3.3.3, fixed 3.3.3 | |
| mistune project | mistune | < 3.3.3 |
References and patches
- GitHub Security Advisory (GHSA-47p6-w2rc-5qf7) vendor-advisory
- Patch Commit patch
- VulnCheck Advisory: Mistune before 3.3.3 Denial of Service via Balanced Bracket Link Parsing third-party-advisory