Skip to content
OpenAdvisories
High SUSE-SU-2026:22655-1 10 CVEs

Security update for python-mistune

Published Jul 14, 2026 · Updated Jul 17, 2026

Summary

This update for python-mistune fixes the following issues

- CVE-2026-59922: quadratic-time parsing on long runs of some markers in `formatting.py` can lead to DoS (bsc#1271117).
- CVE-2026-59923: `HTMLRenderer.safe_url()` does not block percent-encoded javascript URIs and allows for XSS
(bsc#1271119).
- CVE-2026-59924: improper processing of user-supplied include paths in `Include.parse()` can lead to path traversal
and arbitrary file reads (bsc#1271121).
- CVE-2026-59925: quadratic-time parsing on long runs of some emphasis pairs in `inline_parser` can lead to DoS
(bsc#1271125).
- CVE-2026-59926: improper escaping in `render_admonition()` can lead to atribute injection and XSS (bsc#1271127).
- CVE-2026-59927: uncontrolled recursion when processing two markdown files that include each other can lead to a DoS
(bsc#1271128).
- CVE-2026-59928: quadratic-time parsing on long lists of repeated reference-link definitions in `block_parser` can
lead to DoS (bsc#1271131).
- CVE-2026-59929: HARMFUL_PROTOCOLS list misses legacy and chained schemes and allow arbitrary script execution in
user agents (bsc#1271132).
- CVE-2026-59930: the `toc` plugin and `TableOfContents` directive generate heading IDs with predictable values and
allow for collisions with attacker-controlled `id="toc_N"` content (bsc#1271082).

Fixed packages 2

ReleasePackageFixed in
SUSE · SLES 16.0 Linux Enterprise Server 16.0 python-mistune 3.1.3-160000.5.1
SUSE · SLES for SAP 16.0 Linux Enterprise Server for SAP applications 16.0 python-mistune 3.1.3-160000.5.1

Vulnerabilities 10

  • High 7.5

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

    Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, a run of closed tilde, equals-sign, or caret marker pairs around a character causes quadratic work in src/mistune/plugins/formatting.py when the strikethrough, mark, or insert plu…

  • High 7.5

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

    Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, long sequences of well-formed double-asterisk or triple-asterisk emphasis pairs around a character cause quadratic work in src/mistune/inline_parser.py because the parser scans fo…

  • High 7.5

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

    Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, a Markdown document containing many repeated or distinct reference-link definitions causes quadratic work in src/mistune/block_parser.py and the ref_links environment dictionary h…

  • Medium 6.1

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

    Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, HTMLRenderer.safe_url() does not block percent-encoded javascript URIs, allowing attacker-supplied Markdown links or images to bypass URL protections and execute script in rendere…

  • Medium 6.1

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

    Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, the safe_url filter in src/mistune/renderers/html.py blocks only javascript:, vbscript:, file:, and data: schemes, allowing legacy or chained schemes such as feed:, view-source:, …

  • Medium 5.9

    Mistune: Arbitrary File Read via Include directive path traversal

    Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, Include.parse() joins and normalizes user-supplied include paths without verifying that the result remains within the intended markdown directory, allowing crafted include paths t…

  • Medium 5.3

    Mistune: XSS via unescaped figclass/figwidth in Figure directive

    Mistune is a Python Markdown parser with renderers and plugins. In 3.2.0 and earlier, in src/mistune/directives/image.py, the render_figure() function concatenates figclass and figwidth options directly into HTML attributes without escaping. This allows attri…

  • Medium 5.3

    Mistune: XSS via unescaped class option in Admonition directive

    Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, render_admonition() in src/mistune/directives/admonition.py concatenates the Admonition directive :class: option into the HTML class attribute without escaping, allowing attribute…

  • Medium 5.3

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

    Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, the Include directive in src/mistune/directives/include.py detects only direct self-includes and not indirect cycles, allowing two markdown files that include each other to trigge…

  • Medium 4.3

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

    Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, the toc plugin and TableOfContents directive generate heading IDs as predictable toc_N values without slugifying the heading text, allowing attacker-controlled id="toc_N" content …

References

  • report
    https://bugzilla.suse.com/1271082
  • report
    https://bugzilla.suse.com/1271117
  • report
    https://bugzilla.suse.com/1271119
  • report
    https://bugzilla.suse.com/1271121
  • report
    https://bugzilla.suse.com/1271125
  • report
    https://bugzilla.suse.com/1271127
  • report
    https://bugzilla.suse.com/1271128
  • report
    https://bugzilla.suse.com/1271131
  • report
    https://bugzilla.suse.com/1271132
  • web
    https://www.suse.com/security/cve/CVE-2026-44896
  • web
    https://www.suse.com/security/cve/CVE-2026-59922
  • web
    https://www.suse.com/security/cve/CVE-2026-59923
  • web
    https://www.suse.com/security/cve/CVE-2026-59924
  • web
    https://www.suse.com/security/cve/CVE-2026-59925
  • web
    https://www.suse.com/security/cve/CVE-2026-59926
  • web
    https://www.suse.com/security/cve/CVE-2026-59927
  • web
    https://www.suse.com/security/cve/CVE-2026-59928
  • web
    https://www.suse.com/security/cve/CVE-2026-59929
  • web
    https://www.suse.com/security/cve/CVE-2026-59930