Vulnerability · Published Jul 8, 2026 · Assigned by GitHub_M
CVE-2026-59924Mistune: Arbitrary File Read via Include directive path traversal
Medium 5.9
In plain English
A medium-severity path traversal in mistune from lepture. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 40% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | mistune | no fix listed | DEBIAN-CVE-2026-59924 |
| Debian:13 | mistune | no fix listed | DEBIAN-CVE-2026-59924 |
| Debian:14 | mistune | no fix listed | DEBIAN-CVE-2026-59924 |
| PyPI | mistune | 3.3.0 | GHSA-r4rv-85jg-w4mf |
| PyPI | mistune | 3.3.0 | PYSEC-2026-2212 |
| Ubuntu:22.04:LTS | mistune | no fix listed | UBUNTU-CVE-2026-59924 |
| Ubuntu:24.04:LTS | mistune | no fix listed | UBUNTU-CVE-2026-59924 |
| Ubuntu:25.10 | mistune | no fix listed | UBUNTU-CVE-2026-59924 |
| Ubuntu:26.04:LTS | mistune | no fix listed | UBUNTU-CVE-2026-59924 |
| Ubuntu:26.10 | mistune | no fix listed | UBUNTU-CVE-2026-59924 |
Affected products (as reported)
Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
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