En resumen
- CVE-2026-44896 es una vulnerabilidad MEDIO (CVSS 6.1) que afecta a mistune, mistune (mistune project).
- Probabilidad de explotación en los próximos 30 días (EPSS): 0.20%, mayor que el 9.7% de las vulnerabilidades.
- Solución: actualizar a 3.2.1 o posterior.
| 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