VDB
KO
MEDIUM 5.9

PYSEC-2026-2212

Quick fix

PYSEC-2026-2212 — mistune: upgrade to the fixed version with the command below.

pip install --upgrade 'mistune>=3.3.0'

Details

Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, Include.parse() joins and normalizes user-supplied include paths without verifying that the result remains within the intended markdown directory, allowing crafted include paths to access files outside that directory when markdown files are processed using md.read(). This issue is fixed in version 3.3.0.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI / mistune
Introduced in: 0 Fixed in: 3.3.0
Fix pip install --upgrade 'mistune>=3.3.0'

References