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.
Problem types
CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Product status
References
github.com/...istune/security/advisories/GHSA-r4rv-85jg-w4mf
github.com/...istune/security/advisories/GHSA-r4rv-85jg-w4mf
github.com/...ommit/1bef343ade163fc3bb95572b15be720084cdb993
github.com/lepture/mistune/releases/tag/v3.3.0