Install
mistune
A sane and fast Markdown parser with useful plugins and renderers
3.4.0Latest, 19 Oct 2026
75MDownloads, last month
0Advisories on the latest
40Advisories, all versions
BSD-3-ClauseLicence
3.1KStars
4.9/10OpenSSF Scorecard
Source · Ask AI Mode · · Markdown
Known advisories
| Severity | Advisory | Fix | Published |
|---|---|---|---|
| High | Mistune: Quadratic-time DoS in parse_link_href via unbounded parenthesis scan on empty-label links CVE-2026-97698 | Fixed in 3.3.4 | 19 Nov 2026 |
| High | Mistune: Quadratic-time DoS in inline image parsing (precedence_scan) bypasses not-is-image guards CVE-2026-97699 | Fixed in 3.3.4 | 19 Nov 2026 |
| High | Mistune: Path Traversal and XSS in Include directive CVE-2026-115355 | Fixed in 3.3.0 | 23 Oct 2026 |
| Mistune: Denial of Service — RecursionError via Excessive Emphasis Markers in Markdown CVE-2026-76098 | Fixed in 3.3.3 | 10 Sep 2026 | |
| High | Mistune: Denial of Service — RecursionError via Excessive Emphasis Markers in Markdown CVE-2026-76098 | Fixed in 3.3.3 | 2 Sep 2026 |
| Moderate | Mistune toc / TableOfContents directive: heading IDs use predictable `toc_N` numbering with no slugification, allowing collision with attacker-controlled `id="t CVE-2026-59930 | Fixed in 3.3.0 | 20 Jul 2026 |
| High | Mistune inline_parser: quadratic-time parsing on long runs of `**x**` and `***x***` emphasis pairs CVE-2026-59925 | Fixed in 3.3.0 | 20 Jul 2026 |
| Moderate | Mistune: XSS via percent-encoded javascript URI bypass in safe_url() CVE-2026-59923 | Fixed in 3.3.0 | 20 Jul 2026 |
| Moderate | Mistune directives/include: mutual `.. include::` recursion crashes the renderer with `RecursionError`, denial of service via two attacker-controlled markdown f CVE-2026-59927 | Fixed in 3.3.0 | 20 Jul 2026 |
| High | Mistune plugins/formatting: quadratic-time parsing on long runs of `~~x~~`, `==x==`, and `^^x^^` markers (strikethrough / mark / insert) CVE-2026-59922 | Fixed in 3.3.0 | 20 Jul 2026 |
| High | Mistune block_parser: quadratic-time parsing on long lists of repeated reference-link definitions CVE-2026-59928 | Fixed in 3.3.0 | 20 Jul 2026 |
| Moderate | Mistune: XSS via unescaped class option in Admonition directive CVE-2026-59926 | Fixed in 3.3.0 | 20 Jul 2026 |
| Moderate | Mistune renderers/html.safe_url: HARMFUL_PROTOCOLS list misses legacy and chained schemes that historically chain to `javascript:` execution CVE-2026-59929 | Fixed in 3.3.0 | 20 Jul 2026 |
| Moderate | Mistune: Arbitrary File Read via Include directive path traversal CVE-2026-59924 | Fixed in 3.3.0 | 20 Jul 2026 |
| Mistune has a ReDoS in LINK_TITLE_RE that allows denial of service via crafted Markdown input CVE-2026-33079 | Fixed in 3.2.1 | 13 Jul 2026 |
In the news
- Dependecy problems when using `mkdocs`. Cannot import `AstRenderer` form `mistune` stackoverflow.com, 28 Jul 2024
Sources: PyPI, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.