CVE-2026-44897
published medium CVSS 3.1 · 6.1Mistune Heading ID Attribute Injection XSS
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 | openSUSE-Leap-16.0 | python313-mistunenoarch | Advisory build | 3.1.3-160000.3.1 | OPENSUSE-SU-2026:20827-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-mistuneaarch64 | Advisory build | 3.2.1-1.1 | OPENSUSE-SU-2026:10761-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-mistuneppc64le | Advisory build | 3.2.1-1.1 | OPENSUSE-SU-2026:10761-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-mistunes390x | Advisory build | 3.2.1-1.1 | OPENSUSE-SU-2026:10761-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-mistunex86_64 | Advisory build | 3.2.1-1.1 | OPENSUSE-SU-2026:10761-1 |
Show 8 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-mistuneaarch64 | Advisory build | 3.2.1-1.1 | OPENSUSE-SU-2026:10761-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-mistuneppc64le | Advisory build | 3.2.1-1.1 | OPENSUSE-SU-2026:10761-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-mistunes390x | Advisory build | 3.2.1-1.1 | OPENSUSE-SU-2026:10761-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-mistunex86_64 | Advisory build | 3.2.1-1.1 | OPENSUSE-SU-2026:10761-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-mistuneaarch64 | Advisory build | 3.2.1-1.1 | OPENSUSE-SU-2026:10761-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-mistuneppc64le | Advisory build | 3.2.1-1.1 | OPENSUSE-SU-2026:10761-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-mistunes390x | Advisory build | 3.2.1-1.1 | OPENSUSE-SU-2026:10761-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-mistunex86_64 | Advisory build | 3.2.1-1.1 | OPENSUSE-SU-2026:10761-1 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.1 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A: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 Heading ID Attribute Injection XSS
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 07ebf6ca7d2bb9416ddb0ace6baf55d2490585133d770b5a69bbadd8f56c8b87
- Ingested
- 23 Sep 2026, 09:15:36 UTC
- Source record
- Official CVE record