CVE Catalog

CVE-2026-59926

MediumCVSS 6.1
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.19%

9th percentile - higher than 9% of all known CVEs

Summary

In the Mistune Python library, a vulnerability exists due to improper escaping of the :class: option of the Admonition directive before inserting it into the HTML class attribute. This allows attribute injection and XSS attacks even when HTMLRenderer escape mode is enabled. The issue is fixed in version 3.2.1.

Risk Assessment

An attacker can inject malicious HTML attributes or scripts through specially crafted Markdown content, leading to user session hijacking, data theft, or website defacement.

Recommendation

Immediately update the Mistune library to version 3.2.1 or later. If an update is not possible, temporarily disable the Admonition directive.

Other vulnerabilities in Mistune

See all
Original NVD description (English source)

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 injection and cross-site scripting even when HTMLRenderer escape mode is enabled. This issue is fixed in version 3.2.1.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS