mistune CVE-2026-44896
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSubmit markdown with malicious figclass attribute
-
DeliveryParser processes figure directive
-
Exploitrender_figure() concatenates unescaped figclass into HTML
-
ExecutionHTML attribute injection occurs
-
PersistXSS payload executes in victim's browser context
-
ImpactSession hijacking, credential theft, or data exfiltration
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the mistune markdown parser to be configured with figure directive support enabled (the default if using mistune's standard directive plugin). An attacker must be able to submit or control markdown content that is subsequently rendered by an application using mistune - this typically means access to any user input field that accepts markdown (comments, notes, posts, profile descriptions, etc.). No authentication or special configuration is required beyond having the figure directive feature present. The vulnerability affects applications even when HTMLRenderer is explicitly configured with |
| Impact | This vulnerability presents a moderate-to-high real-world risk despite missing CVSS/EPSS data. The attack vector is network-accessible (markdown documents can be processed from untrusted sources via web applications using mistune), attack complexity is low (attribute injection requires only crafted markdown syntax), and no privileges or user interaction beyond document submission are required. The vulnerability is particularly concerning because it defeats the intended security feature ( |
| Exploit ScenarioDerived | An attacker submits a markdown document to a web application (e.g., a note-taking service, wiki, or comment system) that uses mistune to render user input. The markdown contains a figure directive with a malicious |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 09, 2026
Cross-site scripting (XSS) via unescaped HTML attributes in mistune's figure directive allows attackers to inject arbitrary HTML and JavaScript when processing markdown documents with figure directives, bypassing the HTMLRenderer escape setting. The figclass and figwidth parameters in render_figure() are concatenated directly into HTML without sanitization, while other attributes in the same file are properly escaped. Vulnerability affects mistune versions through 3.2.0; no patched version is currently released.
RemediationAI
No vendor-released patched version is currently available as of the advisory date. Immediate mitigation requires either: (1) upgrade mistune to a version newer than 3.2.0 once released by the maintainer (monitor the GitHub repository and PyPI for updates); (2) if upgrading is not immediately feasible, disable figure directives entirely by removing or not loading the image directive plugin - this eliminates the attack surface but removes intended markdown functionality; (3) implement a Web Application Firewall (WAF) rule to detect and block markdown containing figure directives with suspicious figclass or figwidth values (e.g., containing quotes, angle brackets, or event handler patterns), though this is a defense-in-depth measure and not a substitute for patching. Additionally, ensure all markdown input is sourced only from trusted users and consider restricting figure directive usage to authenticated/authorized users if feasible within application logic. Monitor the GitHub repository (https://github.com/lepture/mistune) and the GHSA advisory (https://github.com/lepture/mistune/security/advisories/GHSA-58cw-g322-p94v) for patch releases.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Mistune is a markdown parser library for Python that supports custom directives, including image/figure directives. The vulnerable code is in src/mistune/directives/image.py, specifically the render_figure() function at lines 152-168. The vulnerability stems from CWE-79 (improper neutralization of input during web page generation). While the HTMLRenderer class provides an escape=True parameter to sanitize user input, the figure directive handler bypasses this protection by directly concatenating user-supplied figclass and figwidth option values into HTML attribute strings without escaping. Other attributes in the same file (src, alt, style) correctly apply escaping, indicating this is an implementation oversight rather than a systemic issue.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Primary rating from Vendor (https://github.com/lepture/mistune).
CVSS VectorVendor: https://github.com/lepture/mistune
Lifecycle Timeline
2DescriptionCVE.org
In src/mistune/directives/image.py, the render_figure() function concatenates figclass and figwidth options directly into HTML attributes without escaping (lines 152-168).
This allows attribute injection and XSS even when HTMLRenderer(escape=True) is used, because these values bypass the inline renderer.
Other attributes in the same file (src, alt, style) are properly escaped; figclass/figwidth were missed.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Affected Products (CPE)CVE.org
Same weakness CWE-79 – Cross-site Scripting (XSS)
View allVendor StatusVendor
SUSE
Severity: Medium| Product | Status |
|---|---|
| SUSE Linux Enterprise Desktop 15 SP7 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP7 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP7 | Fixed |
| SUSE Linux Enterprise Module for Python 3 15 SP7 | Fixed |
| SUSE Linux Enterprise Server 15 SP7 | Fixed |
| SUSE Linux Enterprise Server 16.0 | Fixed |
| SUSE Linux Enterprise Server 16.1 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | Fixed |
| SUSE Linux Enterprise Server for SAP applications 16.0 | Fixed |
| SUSE Linux Enterprise Server for SAP applications 16.1 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | Fixed |
| SUSE Linux Enterprise Module for Python 3 15 SP4 | Fixed |
| SUSE Linux Enterprise Module for Python 3 15 SP5 | Fixed |
| SUSE Linux Enterprise Module for Python 3 15 SP6 | Fixed |
| SUSE Linux Enterprise Server 15 SP4 | Fixed |
| SUSE Linux Enterprise Server 15 SP4-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP5 | Fixed |
| SUSE Linux Enterprise Server 15 SP5-LTSS | Fixed |
| SUSE Linux Enterprise Server 15 SP6 | Fixed |
| SUSE Linux Enterprise Server 15 SP6-LTSS | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | Fixed |
| SUSE Manager Proxy 4.3 | Fixed |
| SUSE Manager Retail Branch Server 4.3 | Fixed |
| SUSE Manager Server 4.3 | Fixed |
| SUSE Linux Enterprise Desktop 15 SP4 | Fixed |
| SUSE Linux Enterprise Desktop 15 SP5 | Fixed |
| SUSE Linux Enterprise Desktop 15 SP6 | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | Fixed |
| SUSE Linux Enterprise High Performance Computing 15 SP6 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP4 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP5 | Fixed |
| SUSE Linux Enterprise Module for Package Hub 15 SP6 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | Fixed |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | Fixed |
| openSUSE Leap 15.3 | Fixed |
| openSUSE Leap 15.4 | Fixed |
| openSUSE Leap 15.5 | Fixed |
| openSUSE Leap 15.6 | Fixed |
GHSA-58cw-g322-p94v
NVD
CVE.org
EPSS
VulDB
Exploit-DB