Kurz gesagt
- CVE-2026-44896 ist eine Schwachstelle (MITTEL (CVSS 6.1)) in mistune, mistune (mistune project).
- Wahrscheinlichkeit einer Ausnutzung in den nächsten 30 Tagen (EPSS): 0.20%, höher als bei 9.7% aller Schwachstellen.
- Abhilfe: auf 3.2.1 oder neuer aktualisieren.
| Package | Affected versions | Patched versions |
|---|
| mistune PyPI | < 3.2.1
| 3.2.1
|
| mistune | ≤ 3.2.0
| No fix yet |
Description
In src/mistune/directives/image.py, the render_figure() function concatenates figclass and figwidth options directly into HTML attributes without escaping (lines 152-168).
This allows attribute injection and XSS even when HTMLRenderer(escape=True) is used, because these values bypass the inline renderer.
Other attributes in the same file (src, alt, style) are properly escaped; figclass/figwidth were missed.
NVD description
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 attribute injection and XSS even when HTMLRenderer(escape=True) is used, because these values bypass the inline renderer. Version 3.2.1 contains a patch.
Running one of these products? Scan your site to see whether it exposes a vulnerable version.
Scan my site free