Mistune
Mistune block_parser: quadratic-time parsing on long lists of repeated reference-link definitions
Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, a Markdown document containing many repeated or distinct reference-link definitions causes quadratic work in src/mistune/block_parser.py and the ref_links environment dictionary handling, allowing denial of service through CPU exhaustion. This issue is fixed in version 3.3.0.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.5high · scored by CNA · CWE-407
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
lepture mistune
- < 3.3.0
Fixed in 3.3.0
Mitigation
Upgrade mistune to 3.3.0 or later.
References
- Vendor advisory github.com/lepture/mistune/security/advisories…
- Patch github.com/lepture/mistune/commit/2b04d7ba341c…
- Release notes github.com/lepture/mistune/releases/tag/v3.3.0
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.