Mistune before 3.3.3 Denial of Service via Balanced Bracket Link Parsing
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| lepturemistune |
< 3.3.3→ 3.3.3 |
3.3.3 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-121438 mistune Fix available
- Ubuntu UBUNTU-CVE-2026-121438 mistune No fixed version in this record
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- patch github.com
- REDHAT Red Hat
- web github.com