CVE-2026-44897
Beschrijving NL
Mistune is een Python Markdown-parser met renderers en plug-ins. Voorafgaand aan 3.2.1 bouwtHTMLRenderer.heading () de openingstag door de ID-attribuutwaarde rechtstreeks in de HTML te combineren — zonder aanroep om te ontsnappen(), safe_entity() of een andere ontsmettingsfunctie. Een dubbel aanhalingsteken " in de id-waarde beëindigt het attribuut, waardoor een aanvaller willekeurige extra attributen (event handlers, src=, href=, enz.) in het heading-element kan injecteren. Deze kwetsbaarheid is opgelost in 3.2.1.
Origineel (Engels) tonen
Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, HTMLRenderer.heading() builds the opening 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.