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

exploitDog

github логотип

GHSA-g97x-gvcm-x72h

Опубликовано: 20 июл. 2026
Источник: github
Github: Прошло ревью
CVSS4: 5.3

Описание

Mistune: XSS via unescaped class option in Admonition directive

In src/mistune/directives/admonition.py, the render_admonition() function concatenates the :class: option directly into the HTML class attribute without escaping (lines 63-68).

This allows attribute injection and XSS even when HTMLRenderer(escape=True) is used.

The directive name parameter is safe (validated against whitelist), but the class option comes from raw user input.

Пакеты

Наименование

mistune

pip
Затронутые версииВерсия исправления

< 3.3.0

3.3.0

EPSS

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

5.3 Medium

CVSS4

Дефекты

CWE-79

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

CVSS3: 6.1
ubuntu
24 дня назад

Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, render_admonition() in src/mistune/directives/admonition.py concatenates the Admonition directive :class: option into the HTML class attribute without escaping, allowing attribute injection and cross-site scripting even when HTMLRenderer escape mode is enabled. This issue is fixed in version 3.2.1.

CVSS3: 5.4
redhat
24 дня назад

Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, render_admonition() in src/mistune/directives/admonition.py concatenates the Admonition directive :class: option into the HTML class attribute without escaping, allowing attribute injection and cross-site scripting even when HTMLRenderer escape mode is enabled. This issue is fixed in version 3.2.1.

CVSS3: 6.1
nvd
24 дня назад

Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.2.1, render_admonition() in src/mistune/directives/admonition.py concatenates the Admonition directive :class: option into the HTML class attribute without escaping, allowing attribute injection and cross-site scripting even when HTMLRenderer escape mode is enabled. This issue is fixed in version 3.2.1.

msrc
22 дня назад

Mistune: XSS via unescaped class option in Admonition directive

CVSS3: 6.1
debian
24 дня назад

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

EPSS

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

5.3 Medium

CVSS4

Дефекты

CWE-79