CVE-2026-44896Mistune Project Mistune
Medium 5.3 No auth needed
Follow: this CVE · Mistune Project · Mistune Project Mistune We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 4.0
- 5.3
- EPSS
- —
- Auth required
- No
- Published
- May 26, 2026
- Updated
- Jul 24, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
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.
What to do
- Apply the vendor's security update for Mistune.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | mistune |
< 3.2.1 |
3.2.1 |
pip install "mistune>=3.2.1" |
| PyPI | mistune |
< 3.2.1 |
3.2.1 |
pip install "mistune>=3.2.1" |
Per OSV / GitHub Advisories (GHSA-58cw-g322-p94v, PYSEC-2026-168). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| mistune_project | mistune | ≤ 3.2.0 |
Official advisories
- Security update for python-mistune · SUSE · openSUSE-SU-2026:21339-1 · Jul 14, 2026 High
- Security update for python-mistune · SUSE · SUSE-SU-2026:22655-1 · Jul 14, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com
- github.com Vendor Advisory