Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2026-44897

Опубликовано: 26 мая 2026
Источник: redhat
CVSS3: 6.1
EPSS Низкий

Описание

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.

A flaw was found in Mistune, a Python Markdown parser. A remote attacker could exploit this vulnerability by providing specially crafted input to the HTMLRenderer.heading() function. This input, containing a double-quote character in the HTML heading's ID attribute, is not properly sanitized, allowing the attacker to inject arbitrary attributes. This can lead to cross-site scripting (XSS), potentially resulting in information disclosure or integrity compromise.

Отчет

This Moderate flaw in Mistune, a Python Markdown parser, allows for Cross-Site Scripting (XSS) due to improper sanitization of HTML heading ID attributes. This is particularly relevant in Red Hat products that utilize custom heading_id callbacks to generate human-readable slug anchors from user-controlled heading text, as an attacker could inject arbitrary attributes into the HTML heading element. The default add_toc_hook() is not affected as it generates safe, auto-incremented IDs.

Меры по смягчению последствий

Upgrade to Mistune 3.1.4 or later. As a workaround, avoid using custom heading_id callbacks that derive IDs from user-controlled heading text without sanitization. The default add_toc_hook() with auto-incremented IDs is not affected.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Migration Toolkit for Applications 8mta/mta-solution-server-rhel9Fix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-pipeline-runtime-datascience-cpu-py312-rhel9Fix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-pipeline-runtime-minimal-cpu-py312-rhel9Fix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-pipeline-runtime-pytorch-cuda-py312-rhel9Fix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-pipeline-runtime-pytorch-llmcompressor-cuda-py312-rhel9Fix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-pipeline-runtime-pytorch-rocm-py312-rhel9Fix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-pipeline-runtime-tensorflow-cuda-py312-rhel9Fix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-pipeline-runtime-tensorflow-rocm-py312-rhel9Fix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-th06-cpu-torch210-py312-rhel9Fix deferred
Red Hat OpenShift AI (RHOAI)rhoai/odh-th06-cpu-torch291-py312-rhel9Fix deferred

Показывать по

Дополнительная информация

Статус:

Moderate
Дефект:
CWE-79
https://bugzilla.redhat.com/show_bug.cgi?id=2481735mistune: Mistune: Cross-site scripting (XSS) via improper sanitization of HTML heading ID attribute

EPSS

Процентиль: 14%
0.00228
Низкий

6.1 Medium

CVSS3

Связанные уязвимости

CVSS3: 6.1
ubuntu
2 месяца назад

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.

CVSS3: 6.1
nvd
2 месяца назад

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.

msrc
2 месяца назад

Mistune Heading ID Attribute Injection XSS

CVSS3: 6.1
debian
2 месяца назад

Mistune is a Python Markdown parser with renderers and plugins. Prior ...

CVSS3: 6.1
github
3 месяца назад

Mistune Heading ID Attribute has Injection XSS

EPSS

Процентиль: 14%
0.00228
Низкий

6.1 Medium

CVSS3