CVE-2026-44896
published medium CVSS 4.0 · 5.3Mistune: XSS via unescaped figclass/figwidth in Figure directive
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| lepture | — | mistune< 3.2.1 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| SUSE / openSUSE | SLE-16 | python313-mistunenoarch | Advisory build | 3.1.3-160000.3.1 | SUSE-SU-2026:21858-1 |
| SUSE / openSUSE | SLE-16 | python313-mistunenoarch | Advisory build | 3.1.3-160000.5.1 | SUSE-SU-2026:22655-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-mistunenoarch | Advisory build | 3.1.3-160000.3.1 | OPENSUSE-SU-2026:20827-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | python313-mistunenoarch | Advisory build | 3.1.3-160000.5.1 | OPENSUSE-SU-2026:21339-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| lepture | mistune | < 3.2.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
2Provider assertions
2GitHub_M · cna
Mistune: XSS via unescaped figclass/figwidth in Figure directive
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 0f6d4866a341e893924cf9916530ebe0d671ef0bdf51e37374c0f053dee3aa40
- Ingested
- 23 Sep 2026, 09:15:36 UTC
- Source record
- Official CVE record