PT-2026-39307 · Pypi · Mistune
Sergeykochanov
·
Published
2026-05-08
·
Updated
2026-05-26
·
CVE-2026-44896
CVSS v3.1
6.1
Medium
| Vector | AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Name of the Vulnerable Software and Affected Versions
Mistune (affected versions not specified)
Description
The
render figure() function in src/mistune/directives/image.py concatenates figclass and figwidth options directly into HTML attributes without escaping. This allows attribute injection and Cross-Site Scripting (XSS), a technique where malicious scripts are injected into trusted websites, even when HTMLRenderer(escape=True) is enabled, as these specific values bypass the inline renderer.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
XSS
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Mistune