CVE-2026-44897 json
Mistune Heading ID Attribute Injection XSS
published 2026-05-09 6 mo ago modified 2026-09-10 1 mo ago also EUVD-2026-31994 , GHSA-v87v-83h2-53w7 , PYSEC-2026-2207
- cvss
- 6.1
- 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, HTMLRenderer.heading() builds the opening <hN> tag by string-concatenating the id attribute value directly into the HTML — with no call to escape(), safe_entity(), or any other sanitisation function. A double-quote character " in the id value terminates the attribute, allowing an attacker to inject arbitrary additional attributes (event handlers, src=, href=, etc.) into the heading element. This vulnerability is fixed in 3.2.1.
Patch / fix
- pypi mistune 3.2.1
- mistune_project mistune 3.2.1
- python-mistune openSUSE Tumbleweed 3.2.1-1.1
opensuse advisories openSUSE-SU-2026:10761-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-44897 updated cvss 6.1
mistune: Mistune: Cross-site scripting (XSS) via improper sanitization of HTML heading ID attribute
-
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 “Fix deferred”
-
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
- none
- 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-v87v-83h2-53w7 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 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 | 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 |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | mistune | <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-v87v-83h2-53w7
web, exploit, vendor-advisory, evidence
-
github.com
/lepture/mistune/releases/tag/v3.2.1
web, product, release-notes, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2026-44897
advisory
-
github.com
/lepture/mistune
package
Sources
- CVE List CVE-2026-44897
- GitHub Advisory GHSA-v87v-83h2-53w7
- NVD CVE-2026-44897
- OSV PYSEC-2026-2207
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.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.