Mistune
cpe:2.3:a:mistune_project:mistune:*:*:*:*:*:*:*
- <= 3.2.0
A cross-site scripting (XSS) vulnerability has been identified in the Mistune Markdown parser, specifically in versions through 3.2.0. The issue arises in the 'render_figure()' function within the 'src/mistune/directives/image.py' file, where the 'figclass' and 'figwidth' options are concatenated directly into HTML attributes without proper escaping. This flaw enables attribute injection and XSS, even when 'HTMLRenderer(escape=True)' is applied, as these unescaped values circumvent the inline renderer. In contrast, other attributes such as 'src', 'alt', and 'style' are correctly escaped, leaving 'figclass' and 'figwidth' vulnerable.
Exploitation of this vulnerability allows for cross-site scripting (XSS) attacks, where an attacker can inject malicious scripts that are executed in the context of the user's browser.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.