Description
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.
Affected products
mistune_project: mistune
References4
- github.com/lepture/mistune/security/advisories/GHSA-r4rv-85jg-w… ExploitVendor Advisory
- github.com/lepture/mistune/security/advisories/GHSA-r4rv-85jg-w… ExploitVendor Advisory
- github.com/lepture/mistune/commit/1bef343ade163fc3bb95572b15be7… Patch
- github.com/lepture/mistune/releases/tag/v3.3.0 Release Notes
Metrics
- CVSS 3.1
-
5.9
MEDIUM
Score source: CNA
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N - EPSS — exploit probability
- 0% percentile: 41 · as of 15 November 2026
- CWE
- CWE-22
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.