PT-2026-39307 · Pypi · Mistune

Sergeykochanov

·

Published

2026-05-08

·

Updated

2026-05-26

·

CVE-2026-44896

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.

XSS

Weakness Enumeration

Related Identifiers

CVE-2026-44896
GHSA-58CW-G322-P94V
PYSEC-2026-168

Affected Products

Mistune