ADVISORIES

Vulnerability

CVE-2026-44898

Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, render_toc_ul() builds a <ul> table-of-contents tree from a list of (level, id, text) tuples. Both the id value (used as href="#<id>") and the text value (used as the visible link label) are inserted into <a> tags via a plain Python format string — with no HTML escaping applied to either value. When heading IDs are derived from user-supplied heading text (the standard use-case for readable slug anchors), an attacker can craft a heading whose text breaks out of the href="#..." attribute context, injecting arbitrary HTML tags including <script> blocks directly into the rendered TOC. This vulnerability is fixed in 3.2.1.

7 advisories report this vulnerability, across 5 ecosystems.

Advisories

  • AZL-88403

    CVE-2026-44898 affecting package python-mistune for versions less than 3.2.1-1

    CVE-2026-44898 Azure Linux Updated 28 August 2026
  • DEBIAN-CVE-2026-44898

    Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, render_toc_ul() builds a <ul> table-of-contents tree from a list of (level, id, text) tuples. Both the id value (used as href="#<id>") and…

    CVE-2026-44898 Debian Updated 18 November 2026
  • GHSA-6269-cqxg-mhhv

    Mistune TOC Anchor Injection XSS

    Moderate CVE-2026-44898 PyPI Updated 13 July 2026
  • PYSEC-2026-2208

    Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, render_toc_ul() builds a <ul> table-of-contents tree from a list of (level, id, text) tuples. Both the id value (used as href="#<id>") and…

    CVE-2026-44898 PyPI Updated 13 July 2026
  • SUSE-SU-2026:2949-1

    Security update for python-mistune

    CVE-2026-44898 SUSE Updated 15 July 2026
  • SUSEVEX-CVE-2026-44898

    Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, render_toc_ul() builds a <ul> table-of-contents tree from a list of (level, id, text) tuples. Both the id value (used as href="#<id>") and…

    Moderate CVE-2026-44898 SUSE Updated 31 August 2026
  • UBUNTU-CVE-2026-44898

    Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, render_toc_ul() builds a <ul> table-of-contents tree from a list of (level, id, text) tuples. Both the id value (used as href="#<id>") and…

    CVE-2026-44898 Ubuntu Updated 17 October 2026

References