PyPI (Python)Worst: High23 advisories
mistune: known vulnerabilities
mistune has 23 reviewed security advisories in the GitHub Advisory Database — 10 high, 13 moderate. The most recent was published 2026-10-23. Each one below lists the affected version range, the release that fixes it, its CVE and severity. SkyShield matches these against the mistune versions running across your servers, containers and images, and ranks what to patch first.
How to fix mistune
Upgrade mistune to a release at or above the fixed version shown for each advisory below. For PyPI (Python):
pip install --upgrade mistune (pin mistune>=3.3.0)
SkyShield checks the installed version on every machine and container, so you can see which hosts are still on an affected release after you roll the fix out.
Advisories (23)
Mistune: Path Traversal and XSS in Include directive
High CWE-22
— Affected: before 3.3.0. Fixed in 3.3.0. Published 2026-10-23. GHSA-h7ww-273w-6cm8 · CVE-2026-115355
Duplicate Advisory: Mistune: Path Traversal and XSS in Include directive
High 7.5 CWE-22
— Affected versions listed in the advisory. No fixed release is listed. Published 2026-10-22. GHSA-8cqv-vvq2-6p8c
Mistune: Denial of Service — RecursionError via Excessive Emphasis Markers in Markdown
High 7.5 CWE-674
— Affected: from 3.3.0 up to 3.3.3. Fixed in 3.3.3. Published 2026-08-24. GHSA-6m44-fpc8-c3rq · CVE-2026-76098
Mistune toc / TableOfContents directive: heading IDs use predictable `toc_N` numbering with no slugification, allowing collision with attacker-controlled `id="toc_N"` content
Moderate 4.3 CWE-1284 CWE-345
— Affected: before 3.3.0. Fixed in 3.3.0. Published 2026-07-08. GHSA-2hm2-hc3v-44h9 · CVE-2026-59930
Mistune inline_parser: quadratic-time parsing on long runs of `**x**` and `***x***` emphasis pairs
High 7.5 CWE-1333 CWE-407
— Affected: before 3.3.0. Fixed in 3.3.0. Published 2026-07-08. GHSA-4j32-57v6-6g45 · CVE-2026-59925
Mistune: XSS via percent-encoded javascript URI bypass in safe_url()
Moderate 6.1 CWE-79
— Affected: before 3.3.0. Fixed in 3.3.0. Published 2026-07-08. GHSA-8c25-4j27-2rv3 · CVE-2026-59923
Mistune directives/include: mutual `.. include::` recursion crashes the renderer with `RecursionError`, denial of service via two attacker-controlled markdown files
Moderate 5.3 CWE-674 CWE-755
— Affected: before 3.3.0. Fixed in 3.3.0. Published 2026-07-08. GHSA-8mpj-m6qm-5qr8 · CVE-2026-59927
Mistune plugins/formatting: quadratic-time parsing on long runs of `~~x~~`, `==x==`, and `^^x^^` markers (strikethrough / mark / insert)
High 7.5 CWE-1333 CWE-407
— Affected: before 3.3.0. Fixed in 3.3.0. Published 2026-07-08. GHSA-c8j7-8cv4-2xmq · CVE-2026-59922
Mistune block_parser: quadratic-time parsing on long lists of repeated reference-link definitions
High 7.5 CWE-1333 CWE-407
— Affected: before 3.3.0. Fixed in 3.3.0. Published 2026-07-08. GHSA-ffq3-xpv3-j92q · CVE-2026-59928
Mistune: XSS via unescaped class option in Admonition directive
Moderate CWE-79
— Affected: before 3.3.0. Fixed in 3.3.0. Published 2026-07-08. GHSA-g97x-gvcm-x72h · CVE-2026-59926
Mistune renderers/html.safe_url: HARMFUL_PROTOCOLS list misses legacy and chained schemes that historically chain to `javascript:` execution
Moderate 6.1 CWE-184 CWE-79
— Affected: before 3.3.0. Fixed in 3.3.0. Published 2026-07-08. GHSA-qfrw-5rxm-mhh2 · CVE-2026-59929
Mistune: Arbitrary File Read via Include directive path traversal
Moderate 5.9 CWE-22
— Affected: before 3.3.0. Fixed in 3.3.0. Published 2026-07-08. GHSA-r4rv-85jg-w4mf · CVE-2026-59924
Mistune: Potential DoS via quadratic-time parsing in parse_link_text
High 7.5 CWE-1333 CWE-400
— Affected: before 3.3.0. Fixed in 3.3.0. Published 2026-06-24. GHSA-qcq2-496w-v96p · CVE-2026-49851
Mistune has XSS via unescaped figclass/figwidth in Figure directive
Moderate 6.1 CWE-79
— Affected: before 3.2.1. Fixed in 3.2.1. Published 2026-05-26. GHSA-58cw-g322-p94v · CVE-2026-44896
Mistune TOC Anchor Injection XSS
Moderate 6.1 CWE-79
— Affected: from 3.2.0 up to 3.2.1. Fixed in 3.2.1. Published 2026-05-26. GHSA-6269-cqxg-mhhv · CVE-2026-44898
Mistune Math Plugin has an XSS Escape Bypass
Moderate 6.1 CWE-79
— Affected: up to and including 3.2.0. No fixed release is listed. Published 2026-05-26. GHSA-8g87-j6q8-g93x · CVE-2026-44708
Mistune Image Directive CSS Injection Vulnerability
Moderate 4.7 CWE-79
— Affected: from 3.2.0 up to 3.2.1. Fixed in 3.2.1. Published 2026-05-26. GHSA-ccfx-mfmx-2fx9 · CVE-2026-44899
Mistune Heading ID Attribute has Injection XSS
Moderate 6.1 CWE-79
— Affected: before 3.2.1. Fixed in 3.2.1. Published 2026-05-26. GHSA-v87v-83h2-53w7 · CVE-2026-44897
Mistune has a ReDoS in LINK_TITLE_RE that allows denial of service via crafted Markdown input
High CWE-1333
— Affected: from 3.0.0a1 up to 3.2.1. Fixed in 3.2.1. Published 2026-05-06. GHSA-8mp2-v27r-99xp · CVE-2026-33079
Duplicate Advisory: Mistune has a ReDoS in LINK_TITLE_RE that allows denial of service via crafted Markdown input
High CWE-400
— Affected: from 3.0.0a1 up to 3.2.1. Fixed in 3.2.1. Published 2026-05-06. GHSA-hjph-f4mc-wx4c
Mistune vulnerable to catastrophic backtracking
High 8.6 CWE-1333
— Affected: from 2.0.0a1 up to 2.0.3. Fixed in 2.0.3. Published 2022-07-25. GHSA-fw3v-x4f2-v673 · CVE-2022-34749
mistune Cross-site scripting (XSS) vulnerability
Moderate 6.1 CWE-79
— Affected: before 0.8.1. Fixed in 0.8.1. Published 2019-01-04. GHSA-98gj-wwxm-cj3h · CVE-2017-16876
Cross-site Scripting in Mistune
Moderate 6.1 CWE-79
— Affected: before 0.8. Fixed in 0.8. Published 2017-10-19. GHSA-hpv5-v8g5-c864 · CVE-2017-15612
Find mistune across your fleet
Install one agent per server and connect your cloud. SkyShield matches your packages and images against GHSA,
CISA KEV and EPSS and shows the fix per machine. Free for one server, then from $49 per server a month.
Start free.