CVE-2026-44899: Mistune Image Directive CSS Injection Vulnerability
Vulnerability summary
CVE-2026-44899 is a medium (CVSS 6.1) vulnerability in lepture mistune. EPSS estimates a 0.23% chance of exploitation in the next 30 days, higher than 13.6% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 4.7, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 26-05-2026PublishedVulnerability first disclosed.
- 27-05-2026Last modifiedVulnerability information updated.
Description
Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, the Image directive plugin validates the :width: and :height: options with a regex compiled as _num_re = re.compile(r"^\d+(?:\.\d*)?"). When the validated value is not a plain integer, render_block_image() inserts it directly into a style="width:...;" or style="height:...;" attribute. Because the value was accepted by the prefix-only regex, any CSS after the leading digits reaches the style= attribute verbatim and without escaping. This vulnerability is fixed in 3.2.1.
CVSS metrics
5 scores · 5 sources · 1 version- CVE.orgCNA4.7MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:NDiffers
- OSV · PypiEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · UbuntuEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- OSV · DebianEcosystem advisory · calculated6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
EPSS trend
Probability
0.23%
Chance of exploitation in the next 30 days
Percentile
14%
Versus all other CVEs
30-day change
Decrease -0.04 pp
From 0.27% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundMistune
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu2 products
- mistuneAll versions (No fix recorded)
- mistune0All versions (No fix recorded)
Debian1 product
- mistuneAll versions (No fix recorded)
Lepture1 product
- mistune< 3.2.1
Mistune_project1 product
- mistune< 3.2.1
PyPI1 product
- mistune≥ 3.2.0, < 3.2.1 | < 3.2.1
5 vendors · 6 products
References
7 links- github.com/lepture/mistune/security/advisories/GHSA-ccfx-mfmx-2fx9X Refsource CONFIRMWEBEVIDENCEREPORTExploitVendor Advisory
- github.com/lepture/mistunePACKAGE