# mistune (PyPI)

A sane and fast Markdown parser with useful plugins and renderers

- Latest: 3.4.0 (2026-10-19)
- Licence: BSD-3-Clause
- Downloads: 74502549 last month
- Advisories on the latest version: 0

- CVE-2026-97698 HIGH: Mistune: Quadratic-time DoS in parse_link_href via unbounded parenthesis scan on empty-label links Fixed in 3.3.4.
- CVE-2026-97699 HIGH: Mistune: Quadratic-time DoS in inline image parsing (precedence_scan) bypasses not-is-image guards Fixed in 3.3.4.
- CVE-2026-115355 HIGH: Mistune: Path Traversal and XSS in Include directive Fixed in 3.3.0.
- CVE-2026-76098 : Mistune: Denial of Service — RecursionError via Excessive Emphasis Markers in Markdown Fixed in 3.3.3.
- CVE-2026-76098 HIGH: Mistune: Denial of Service — RecursionError via Excessive Emphasis Markers in Markdown Fixed in 3.3.3.
- CVE-2026-59930 MODERATE: Mistune toc / TableOfContents directive: heading IDs use predictable `toc_N` numbering with no slugification, allowing collision with attacker-controlled `id="t Fixed in 3.3.0.
- CVE-2026-59925 HIGH: Mistune inline_parser: quadratic-time parsing on long runs of `**x**` and `***x***` emphasis pairs Fixed in 3.3.0.
- CVE-2026-59923 MODERATE: Mistune: XSS via percent-encoded javascript URI bypass in safe_url() Fixed in 3.3.0.
- CVE-2026-59927 MODERATE: Mistune directives/include: mutual `.. include::` recursion crashes the renderer with `RecursionError`, denial of service via two attacker-controlled markdown f Fixed in 3.3.0.
- CVE-2026-59922 HIGH: Mistune plugins/formatting: quadratic-time parsing on long runs of `~~x~~`, `==x==`, and `^^x^^` markers (strikethrough / mark / insert) Fixed in 3.3.0.
- CVE-2026-59928 HIGH: Mistune block_parser: quadratic-time parsing on long lists of repeated reference-link definitions Fixed in 3.3.0.
- CVE-2026-59926 MODERATE: Mistune: XSS via unescaped class option in Admonition directive Fixed in 3.3.0.
- CVE-2026-59929 MODERATE: Mistune renderers/html.safe_url: HARMFUL_PROTOCOLS list misses legacy and chained schemes that historically chain to `javascript:` execution Fixed in 3.3.0.
- CVE-2026-59924 MODERATE: Mistune: Arbitrary File Read via Include directive path traversal Fixed in 3.3.0.
- CVE-2026-33079 : Mistune has a ReDoS in LINK_TITLE_RE that allows denial of service via crafted Markdown input Fixed in 3.2.1.
- CVE-2026-49851 :  Mistune: Potential DoS via quadratic-time parsing in parse_link_text Fixed in 3.3.0.
- CVE-2026-49851 HIGH:  Mistune: Potential DoS via quadratic-time parsing in parse_link_text Fixed in 3.3.0.
- CVE-2026-59922 :  Fixed in 3.3.0.
- CVE-2026-59923 :  Fixed in 3.3.0.
- CVE-2026-59924 :  Fixed in 3.3.0.
- CVE-2026-59925 :  Fixed in 3.3.0.
- CVE-2026-59926 :  Fixed in 3.3.0.
- CVE-2026-59927 :  Fixed in 3.3.0.
- CVE-2026-59928 :  Fixed in 3.3.0.
- CVE-2026-59929 :  Fixed in 3.3.0.
- CVE-2026-59930 :  Fixed in 3.3.0.
- CVE-2026-44896 :  Fixed in 3.2.1.
- CVE-2026-44708 :  Fixed in 3.2.1.
- CVE-2026-44897 :  Fixed in 3.2.1.
- CVE-2026-44898 :  Fixed in 3.2.1.
- CVE-2026-44899 :  Fixed in 3.2.1.
- CVE-2026-44898 MODERATE: Mistune TOC Anchor Injection XSS Fixed in 3.2.1.
- CVE-2026-44899 MODERATE: Mistune Image Directive CSS Injection Vulnerability Fixed in 3.2.1.
- CVE-2026-44897 MODERATE: Mistune Heading ID Attribute has Injection XSS Fixed in 3.2.1.
- CVE-2026-44896 MODERATE: Mistune has XSS via unescaped figclass/figwidth in Figure directive Fixed in 3.2.1.
- CVE-2026-44708 MODERATE: Mistune Math Plugin has an XSS Escape Bypass
- CVE-2026-33079 HIGH: Mistune has a ReDoS in LINK_TITLE_RE that allows denial of service via crafted Markdown input Fixed in 3.2.1.
- CVE-2022-34749 HIGH: Mistune vulnerable to catastrophic backtracking Fixed in 2.0.3.
- CVE-2022-34749 :  Fixed in 2.0.3.
- CVE-2017-15612 MODERATE: Cross-site Scripting in Mistune Fixed in 0.8.

Sources: PyPI, deps.dev (CC BY 4.0), OSV. Last checked 4 Dec 2026.
