CVE-2026-44896
Mistune is a Python Markdown parser with renderers and plugins. In …
Mistune is a Python Markdown parser with renderers and plugins. In 3.2.0 and realier, 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.
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.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/lepture/mistune/security/advisories/GHSA-58cw-g322-p94v
- github.com/advisories/GHSA-58cw-g322-p94v
- github.com/lepture/mistune/commit/a3cb6e5655308797e8be021d6c7b5bab13cbace2
- nvd.nist.gov/vuln/detail/CVE-2026-44896
- github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2026-168.yaml
- nvd.nist.gov/vuln/detail/CVE-2026-44896
- cve.org/CVERecord?id=CVE-2026-44896
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.