CVE-2026-59926
Mistune is a Python Markdown parser with renderers and plugins. …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/lepture/mistune/commit/a3cb6e5655308797e8be021d6c7b5bab13cbace2
- github.com/lepture/mistune/releases/tag/v3.2.1
- github.com/lepture/mistune/security/advisories/GHSA-g97x-gvcm-x72h
- nvd.nist.gov/vuln/detail/CVE-2026-59926
- github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2026-2214.yaml
- github.com/advisories/GHSA-g97x-gvcm-x72h
- nvd.nist.gov/vuln/detail/CVE-2026-59926
- cve.org/CVERecord?id=CVE-2026-59926
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.