CVE-2026-44896 - Mistune has XSS via unescaped figclass/figwidth in Figure directive

📡 GitHub-Advisory · 2026-05-08

CVE-2026-44896 - Mistune has XSS via unescaped figclass/figwidth in Figure directive

CVE-2026-44896

GHSA-58cw-g322-p94v MEDIUM pip/mistune

CVE: CVE-2026-44896

In src/mistune/directives/image.py, the render_figure() function concatenates figclass and figwidth options directly into HTML attributes without escaping (lines 152-168).

This allows attribute injection and XSS even when HTMLRenderer(escape=True) is used, because these values bypass the inline renderer.

Other attributes in the same file (src, alt, style) are properly escaped; figclass/figwidth were missed.


📌 来源: GitHub-Advisory | 🆔 CVE-2026-44896 | 📅 2026-05-08

[!] CONTACT_CHANNELS

如需商务合作、技术咨询或漏洞反馈,请通过以下离岸节点联系作者。

> PING_AUTHOR (@A1RedTeam)