PT-2026-39307 · Pypi · Mistune

·

CVE-2026-44896

·

Published

2026-05-08

·

Updated

2026-07-14

CVSS v3.1

6.1

Medium

VectorAV: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.

Exploit

XSS

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2026-44896
ECHO-E0F8-85F8-BD18
GHSA-58CW-G322-P94V
OPENSUSE-SU-2026:20827-1
OPENSUSE-SU-2026:21339-1
PYSEC-2026-168
SUSE-SU-2026:21858-1
SUSE-SU-2026:22655-1

Affected Products

Mistune