VYPR
Medium severity6.1OSV Advisory· Published Jul 8, 2026· Updated Jul 9, 2026

CVE-2026-59926

CVE-2026-59926

Description

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.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
mistunePyPI
< 3.3.03.3.0

Affected products

4

Patches

Vulnerability mechanics

References

6

News mentions

2