CVE-2026-115351: Mistune 3.2.1 before 3.3.0 CSS Injection via Figure Directive figwidth Option

Published Oct 22, 2026
·
Updated

Mistune from 3.2.1 before 3.3.0 contains a CSS injection vulnerability that allows attackers controlling markdown input to inject arbitrary style declarations via the unvalidated figwidth option of the figure directive. Attackers can append declarations like background:url() to the rendered figure style attribute, forcing victim browsers to send requests to attacker servers and leak attribute values.

Affected Software

12 affected componentsFixes available
pypi/mistune>=3.2.1<3.3.0
ubuntu/mistune*
ubuntu/mistune*
ubuntu/mistune*
ubuntu/mistune*
ubuntu/mistune*
ubuntu/mistune*
ubuntu/mistune*
debian/mistune<=2.0.4-1, <=3.1.3-1, <=3.1.4-1
3.4.0-1
debian/mistune*
debian/mistune*
debian/mistune*

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/mistune to a version that resolves this vulnerability.

    Fixed in 3.4.0-1

Event History

Oct 22, 2026
CVE Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
CVE Published
via MITRE·07:13 PM
Data Sourced
via MITRE·07:13 PM
DescriptionSeverityWeakness
Data Sourced
via OSV·07:17 PM
Affected Software
Data Sourced
via NVD·07:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Applications using Mistune versions 3.2.1 through before 3.3.0 are exposed when they render Markdown controlled by an attacker and deliver the rendered figure to a victim's browser.

2

What does an attacker need to exploit it?

The attacker needs control over Markdown input containing a figure directive and its figwidth option. Exploitation also requires a victim to view the rendered content in a browser.

3

What should be done if the application accepts untrusted Markdown?

Upgrade Mistune to version 3.3.0 or later. Until upgrading, prevent untrusted users from supplying figure directives or the figwidth option, and review rendered figure style attributes for injected CSS declarations.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203