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

exploitDog

redhat логотип

CVE-2026-44896

Опубликовано: 26 мая 2026
Источник: redhat
CVSS3: 5.4

Описание

Mistune is a Python Markdown parser with renderers and plugins. In 3.2.0 and earlier, in src/mistune/directives/image.py, the render_figure() function concatenates figclass and figwidth options directly into HTML attributes without escaping. This allows attribute injection and XSS even when HTMLRenderer(escape=True) is used, because these values bypass the inline renderer. Version 3.2.1 contains a patch.

A flaw was found in Mistune, a Python Markdown parser. This vulnerability allows a remote attacker to inject malicious code into web pages, leading to Cross-Site Scripting (XSS). The issue arises from the render_figure() function, which improperly handles figclass and figwidth options by directly embedding them into HTML attributes without escaping. This oversight can enable an attacker to execute arbitrary scripts in a user's browser, potentially compromising user sessions or disclosing sensitive information.

Отчет

This Moderate-impact Cross-Site Scripting (XSS) flaw in the Mistune Markdown parser affects Red Hat products that process untrusted markdown content. The vulnerability allows attribute injection and XSS due to improper handling of figclass and figwidth options, bypassing HTML escaping. Successful exploitation requires user interaction with a specially crafted markdown file.

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

Upgrade mistune to version 3.2.1 or later in affected Red Hat products when updated builds become available. Until updated images are available, avoid rendering untrusted Markdown content through mistune Figure directives, or ensure figclass and figwidth options are not sourced from untrusted input. Applications using HTMLRenderer(escape=True) remain vulnerable to this issue because figclass and figwidth bypass the inline renderer.

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

ПлатформаПакетСостояниеРекомендацияРелиз
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=2481723mistune: Mistune: Cross-Site Scripting (XSS) via unescaped HTML attributes

5.4 Medium

CVSS3

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

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

Mistune is a Python Markdown parser with renderers and plugins. In 3.2.0 and earlier, in src/mistune/directives/image.py, the render_figure() function concatenates figclass and figwidth options directly into HTML attributes without escaping. This allows attribute injection and XSS even when HTMLRenderer(escape=True) is used, because these values bypass the inline renderer. Version 3.2.1 contains a patch.

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

Mistune is a Python Markdown parser with renderers and plugins. In 3.2.0 and earlier, in src/mistune/directives/image.py, the render_figure() function concatenates figclass and figwidth options directly into HTML attributes without escaping. This allows attribute injection and XSS even when HTMLRenderer(escape=True) is used, because these values bypass the inline renderer. Version 3.2.1 contains a patch.

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

Mistune: XSS via unescaped figclass/figwidth in Figure directive

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

Mistune is a Python Markdown parser with renderers and plugins. In 3.2 ...

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

Mistune has XSS via unescaped figclass/figwidth in Figure directive

5.4 Medium

CVSS3