CVEvulnerability
CVE-2026-59924
5.9 MEDIUM
Official page ↗
- Status
- Analyzed
- Published
- 2026-07-08
- Last modified
- 2026-10-25
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 5.9 MEDIUM — CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- Weaknesses
- CWE-22
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 configurations
• mistune project mistune (< 3.3.0)
Related
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
References
- https://github.com/lepture/mistune/commit/1bef343ade163fc3bb95572b15be720084cdb993 Patch
- https://github.com/lepture/mistune/releases/tag/v3.3.0 Release Notes
- https://github.com/lepture/mistune/security/advisories/GHSA-r4rv-85jg-w4mf Exploit, Vendor Advisory
- https://github.com/lepture/mistune/security/advisories/GHSA-r4rv-85jg-w4mf Exploit, Vendor Advisory