Bug 2481726 (CVE-2026-44898) - CVE-2026-44898 mistune: Mistune: Arbitrary code execution via HTML injection in table of contents rendering
Summary: CVE-2026-44898 mistune: Mistune: Arbitrary code execution via HTML injection ...
Keywords:
Status: NEW
Alias: CVE-2026-44898
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: 2489783 2489784 2489782
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-05-26 22:02 UTC by OSIDB Bzimport
Modified: 2026-06-19 09:12 UTC (History)
14 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-05-26 22:02:11 UTC
Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, render_toc_ul() builds a <ul> table-of-contents tree from a list of (level, id, text) tuples. Both the id value (used as href="#<id>") and the text value (used as the visible link label) are inserted into <a> tags via a plain Python format string — with no HTML escaping applied to either value. When heading IDs are derived from user-supplied heading text (the standard use-case for readable slug anchors), an attacker can craft a heading whose text breaks out of the href="#..." attribute context, injecting arbitrary HTML tags including <script> blocks directly into the rendered TOC. 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.