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.
Project Subscriptions
No data.
Advisories
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-58cw-g322-p94v | Mistune has XSS via unescaped figclass/figwidth in Figure directive |
Fixes
Solution
No solution given by the vendor.
Workaround
No workaround given by the vendor.
References
History
Tue, 26 May 2026 21:15:00 +0000
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | Mistune: XSS via unescaped figclass/figwidth in Figure directive | |
| Weaknesses | CWE-79 | |
| References |
| |
| Metrics |
cvssV4_0
|
Projects
Sign in to view the affected projects.
Status: PUBLISHED
Assigner: GitHub_M
Published:
Updated: 2026-05-26T20:33:38.696Z
Reserved: 2026-05-07T21:50:33.546Z
Link: CVE-2026-44896
No data.
Status : Received
Published: 2026-05-26T21:16:39.477
Modified: 2026-05-26T21:16:39.477
Link: CVE-2026-44896
No data.
OpenCVE Enrichment
Updated: 2026-05-26T22:30:18Z
Weaknesses
Github GHSA