CVE-2026-44899 json
Mistune Image Directive CSS Injection Vulnerability
published 2026-05-14 5 mo ago modified 2026-07-24 3 mo ago also GHSA-ccfx-mfmx-2fx9 , PYSEC-2026-2209 , EUVD-2026-31992
- cvss
- 4.7
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 13%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi mistune 3.2.1
- mistune_project mistune 3.2.1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-44899 updated cvss 4.7
python-mistune: Mistune: Information disclosure via CSS injection in Image directive plugin
-
Red Hat Migration Toolkit for Applications 8 mta/mta-solution-server-rhel9 Red Hat OpenShift AI (RHOAI) rhoai/odh-th06-cpu-torch210-py312-rhel9, rhoai/odh-th06-cpu-torch291-py312-rhel9, rhoai/odh-th06-rocm64-torch291-py312-rhel9, rhoai/odh-th06-cuda130-torch210-py312-rhel9, rhoai/odh-th06-cuda130-torch291-py312-rhel9, rhoai/odh-pipeline-runtime-minimal-cpu-py312-rhel9, +16 moreaffected: workaround, no fix available “Disable or avoid using the Image directive plugin in mistune when processing untrusted Markdown input. Update to mistune 3.2.1 or later where this issue is fixed.”
-
Red Hat OpenShift Container Platform 4 python-mistune Red Hat Satellite 6 satellite/iop-advisor-engine-rhel9not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 5 mo ago
Exploit prediction
0.23% chance of exploitation in the next 30 days, higher than 13% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/lepture/mistune/security/advisories/GHSA-ccfx-mfmx-2fx9 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.7 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 4.7 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | mistune | >=3.2.0, <3.2.1 <3.2.1 |
3.2.1 |
Affected products
- lepture mistune
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/lepture/mistune/security/advisories/GHSA-ccfx-mfmx-2fx9
exploit, web, vendor-advisory, evidence
-
github.com
/lepture/mistune/releases/tag/v3.2.1
web, product, release-notes, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-44899
advisory
-
github.com
/lepture/mistune
package
Sources
- CVE List CVE-2026-44899
- GitHub Advisory GHSA-ccfx-mfmx-2fx9
- NVD CVE-2026-44899
- OSV PYSEC-2026-2209
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.