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.
Severity (CVSS)
| Base score | 5.9 |
|---|---|
| Severity | Medium |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| Provided by | CNA |
Weaknesses
- CWE-22 — CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| lepture | mistune | < 3.3.0 |
References
- https://github.com/lepture/mistune/security/advisories/GHSA-r4rv-85jg-w4mf (x_refsource_CONFIRM)
- https://github.com/lepture/mistune/commit/1bef343ade163fc3bb95572b15be720084cdb993 (x_refsource_MISC)
- https://github.com/lepture/mistune/releases/tag/v3.3.0 (x_refsource_MISC)
Generated from the official CVE List on 09 Jul 2026 07:08 UTC.