Arbitrary Code Injection Affecting mistune package, versions [,3.3.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.22% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-MISTUNE-21460665
  • published23 Oct 2026
  • disclosed22 Oct 2026
  • creditoffset

Introduced: 22 Oct 2026

NewCVE-2026-115351  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade mistune to version 3.3.0 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Injection via the figwidth option in src/mistune/directives/image.py, where an attacker can supply an arbitrary string value for the figwidth directive option that is passed through without validation into the rendered HTML figure attributes, allowing injection of unsanitized content. This can lead to information disclosure through malicious attribute values rendered in the output document.

CVSS Base Scores

version 4.0
version 3.1