Is mistune 3.1 vulnerable?

PyPI · 5 releases from 3.1.0 to 3.1.4 · latest mistune is 3.4.0 · checked 18 Nov 2026

Yes: 15 known advisories

Yes. mistune 3.1.4, the last 3.1 release, is affected by 15 known security advisories (6 high, 9 medium), including CVE-2026-115355, CVE-2026-59922, CVE-2026-59925. At least one has no fixed release yet.

Is your project on an affected mistune?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Python apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Advisories affecting mistune 3.1.4

  • HighCVE-2026-115355GHSA-h7ww-273w-6cm823 Oct 2026

    Mistune: Path Traversal and XSS in Include directive

    Affected
    <3.3.0
    Fixed in
    3.3.0
  • MediumCVE-2026-59929GHSA-qfrw-5rxm-mhh220 Jul 2026

    Mistune renderers/html.safe_url: HARMFUL_PROTOCOLS list misses legacy and chained schemes that historically chain to `javascript:` execution

    Affected
    <3.3.0
    Fixed in
    3.3.0
  • MediumCVE-2026-59930GHSA-2hm2-hc3v-44h920 Jul 2026

    Mistune toc / TableOfContents directive: heading IDs use predictable `toc_N` numbering with no slugification, allowing collision with attacker-controlled `id="toc_N"` content

    Affected
    <3.3.0
    Fixed in
    3.3.0
  • MediumCVE-2026-59924GHSA-r4rv-85jg-w4mf20 Jul 2026

    Mistune: Arbitrary File Read via Include directive path traversal

    Affected
    <3.3.0
    Fixed in
    3.3.0
  • HighCVE-2026-59922GHSA-c8j7-8cv4-2xmq20 Jul 2026

    Mistune plugins/formatting: quadratic-time parsing on long runs of `~~x~~`, `==x==`, and `^^x^^` markers (strikethrough / mark / insert)

    Affected
    <3.3.0
    Fixed in
    3.3.0
  • MediumCVE-2026-59926GHSA-g97x-gvcm-x72h20 Jul 2026

    Mistune: XSS via unescaped class option in Admonition directive

    Affected
    <3.3.0
    Fixed in
    3.3.0
  • MediumCVE-2026-59923GHSA-8c25-4j27-2rv320 Jul 2026

    Mistune: XSS via percent-encoded javascript URI bypass in safe_url()

    Affected
    <3.3.0
    Fixed in
    3.3.0
  • HighCVE-2026-59925GHSA-4j32-57v6-6g4520 Jul 2026

    Mistune inline_parser: quadratic-time parsing on long runs of `**x**` and `***x***` emphasis pairs

    Affected
    <3.3.0
    Fixed in
    3.3.0
  • MediumCVE-2026-59927GHSA-8mpj-m6qm-5qr820 Jul 2026

    Mistune directives/include: mutual `.. include::` recursion crashes the renderer with `RecursionError`, denial of service via two attacker-controlled markdown files

    Affected
    <3.3.0
    Fixed in
    3.3.0
  • HighCVE-2026-59928GHSA-ffq3-xpv3-j92q20 Jul 2026

    Mistune block_parser: quadratic-time parsing on long lists of repeated reference-link definitions

    Affected
    <3.3.0
    Fixed in
    3.3.0
  • HighCVE-2026-49851GHSA-qcq2-496w-v96p9 Jul 2026

    Mistune: Potential DoS via quadratic-time parsing in parse_link_text

    Affected
    <3.3.0
    Fixed in
    3.3.0
  • MediumCVE-2026-44897GHSA-v87v-83h2-53w79 May 2026

    Mistune Heading ID Attribute has Injection XSS

    Affected
    <3.2.1
    Fixed in
    3.2.1
  • MediumCVE-2026-44896GHSA-58cw-g322-p94v8 May 2026

    Mistune has XSS via unescaped figclass/figwidth in Figure directive

    Affected
    <3.2.1
    Fixed in
    3.2.1
  • MediumCVE-2026-44708GHSA-8g87-j6q8-g93x8 May 2026

    Mistune Math Plugin has an XSS Escape Bypass

    Affected
    <=3.2.0
    Fixed in
    No fix released
  • HighCVE-2026-33079GHSA-8mp2-v27r-99xp6 May 2026

    Mistune has a ReDoS in LINK_TITLE_RE that allows denial of service via crafted Markdown input

    Affected
    >=3.0.0a1 <3.2.1
    Fixed in
    3.2.1

Every mistune 3.1.x release

Affected: 3.1.0 to 3.1.4. Latest mistune: 3.4.0.

VersionKnown advisories
mistune 3.1.4CVE-2026-115355, CVE-2026-59929, CVE-2026-59930, CVE-2026-59924, CVE-2026-59922, CVE-2026-59926, CVE-2026-59923, CVE-2026-59925, CVE-2026-59927, CVE-2026-59928, CVE-2026-49851, CVE-2026-44897, CVE-2026-44896, CVE-2026-44708, CVE-2026-33079
mistune 3.1.3CVE-2026-115355, CVE-2026-59929, CVE-2026-59930, CVE-2026-59924, CVE-2026-59922, CVE-2026-59926, CVE-2026-59923, CVE-2026-59925, CVE-2026-59927, CVE-2026-59928, CVE-2026-49851, CVE-2026-44897, CVE-2026-44896, CVE-2026-44708, CVE-2026-33079
mistune 3.1.2CVE-2026-115355, CVE-2026-59929, CVE-2026-59930, CVE-2026-59924, CVE-2026-59922, CVE-2026-59926, CVE-2026-59923, CVE-2026-59925, CVE-2026-59927, CVE-2026-59928, CVE-2026-49851, CVE-2026-44897, CVE-2026-44896, CVE-2026-44708, CVE-2026-33079
mistune 3.1.1CVE-2026-115355, CVE-2026-59929, CVE-2026-59930, CVE-2026-59924, CVE-2026-59922, CVE-2026-59926, CVE-2026-59923, CVE-2026-59925, CVE-2026-59927, CVE-2026-59928, CVE-2026-49851, CVE-2026-44897, CVE-2026-44896, CVE-2026-44708, CVE-2026-33079
mistune 3.1.0CVE-2026-115355, CVE-2026-59929, CVE-2026-59930, CVE-2026-59924, CVE-2026-59922, CVE-2026-59926, CVE-2026-59923, CVE-2026-59925, CVE-2026-59927, CVE-2026-59928, CVE-2026-49851, CVE-2026-44897, CVE-2026-44896, CVE-2026-44708, CVE-2026-33079

Which of your client projects are still on mistune 3.1?

NPMscan reads the lockfiles in every GitHub repo you pick, finds the exact mistune version each one installs, and checks it against these advisories. Each finding comes with the command that fixes it.

Other mistune versions

Advisory data from OSV.dev (opens OSV.dev in a new tab), which includes the GitHub Advisory Database. Release list from the PyPI registry. Refreshed daily.