CVE catalog

CVE-2026-44897

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

[CVE catalog]

Severity
Medium · CVSS 6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.23% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianmistunesid3.4.0-1fixed
Debianmistuneforky3.1.4-1vulnerable
Debianmistunetrixie3.1.3-1vulnerable
Debianmistunebookworm2.0.4-1vulnerable
CpemistuneNot reportedNot reportedvulnerable
CpemistuneNot reported3.2.1fixed
PyPImistuneNot reported3.2.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianmistunesourcesid3.3.4-1not yet assignedNot reported[1138260]
Debianmistunesourceforky(unfixed)not yet assignedNot reported[1138260]
Debianmistunesourcetrixie(unfixed)not yet assignedNot reported[1138260]
Debianmistunesourcebookworm(unfixed)not yet assignedNot reported[1138260]
CpemistunecpeNot reported3.2.1Not reportedNot reportedNot reported
PyPImistunePyPINot reported3.2.1Not reportedGHSA-V87V-83H2-53W7Not reported

[Debian bug #1138260]

Notes

[trixie] mistune: Minor issue [bookworm] mistune: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [python3-mistune]Affected

    Source package: [mistune]

    Details (2)
    • 2.0.4-1 · all · bookworm

      Affected

      nvd · mistune · debian · bookworm; nvd · mistune · debian · 12

    • 2.0.4-1 · all · bookworm

      Affected

      nvd · mistune · debian · bookworm; nvd · mistune · debian · 12

[Debian 13 (Trixie)]

  • [python3-mistune]Affected

    Source package: [mistune]

    Details (2)
    • 3.1.3-1 · all · trixie

      Affected

      nvd · mistune · debian · 13

    • 3.1.3-1 · all · trixie

      Affected

      nvd · mistune · debian · 13

Observed:

References