CVE-2026-44896
Description
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Mitigation details
CVE-2026-44896 NameCVE-2026-44896 DescriptionMistune 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โฆ
CVE-2026-44896
| Name | CVE-2026-44896 |
| Description | 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| mistune (PTS) | bullseye | 0.8.4-4 | vulnerable |
| bookworm | 2.0.4-1 | vulnerable | |
| trixie | 3.1.3-1 | vulnerable | |
| forky, sid | 3.1.4-1 | vulnerable |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| mistune | source | (unstable) | (unfixed) |
Notes
https://github.com/lepture/mistune/security/advisories/GHSA-58cw-g322-p94v
Apply commands
https://github.com/lepture/mistune/security/advisories/GHSA-58cw-g322-p94v
OS impact
Debian Affected 5 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Affected | โ |
| sid | Affected | โ |
| forky | Affected | โ |
| bullseye | Affected | โ |
| bookworm | Affected | โ |
SUSE Affected 1 release
| Version | Status | Fixed in |
|---|---|---|
| โ | Affected | โ |
Windows Affected 1 release
| Version | Status | Fixed in |
|---|---|---|
| โ | Affected | โ |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| mistune_project | mistune | {"endIncluding":"3.2.0"} | |
References
- https://github.com/lepture/mistune/security/advisories/GHSA-58cw-g322-p94v
- https://github.com/lepture/mistune
- https://www.suse.com/security/cve/CVE-2026-44896.html
- https://github.com/advisories/GHSA-58cw-g322-p94v
- https://security-tracker.debian.org/tracker/CVE-2026-44896
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-44896
CWEs
CWE-79
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.