Em resumo
- CVE-2026-44896 é uma vulnerabilidade MÉDIO (CVSS 6.1) que afeta mistune, mistune (mistune project).
- Chance de exploração nos próximos 30 dias (EPSS): 0.20%, maior que 9.7% das vulnerabilidades.
- Correção: atualize para 3.2.1 ou 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