Bug 2481735 (CVE-2026-44897) - CVE-2026-44897 mistune: Mistune: Cross-site scripting (XSS) via improper sanitization of HTML heading ID attribute
Summary: CVE-2026-44897 mistune: Mistune: Cross-site scripting (XSS) via improper sani...
Keywords:
Status: NEW
Alias: CVE-2026-44897
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-05-26 22:02 UTC by OSIDB Bzimport
Modified: 2026-07-04 12:31 UTC (History)
15 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-05-26 22:02:38 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.