Advisory

PYSEC-2026-2212

Also known as: CVE-2026-59924, GHSA-r4rv-85jg-w4mf

Summary

The record has no summary.

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.

Severity

Medium Basis: CVSS v3 score 5.9, vector CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Dates

Published
2026-07-08 17:17 UTC
Modified
2026-07-13 07:15 UTC

Affected packages and fixes

mistune

PyPI · All systems

Affected

  • introduced 0, fixed 3.3.0 (ecosystem)

Fixed versions

3.3.0

Fix

  • Fixed version 3.3.0
    pip install --upgrade mistune==3.3.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences