CVE-2026-59924
MEDIUM 5.9CVSS 3.1Mistune: Arbitrary File Read via Include directive path traversal
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.
- Published
- 8 Jul 2026
- Last modified
- 25 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-22
- Also known as
- GHSA-r4rv-85jg-w4mfPYSEC-2026-2212
- Sources
- NVDJSONOSV GHSA-r4rv-85jg-w4mfJSONOSV PYSEC-2026-2212JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | PyPA | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | mistune_project | mistunecpe:2.3:a:mistune_project:mistune:*:*:*:*:*:*:*:* |
< 3.3.0 | 3.3.0 |
| OSV | PyPI | mistune | < 3.3.0 | 3.3.0 |
References
- https://github.com/lepture/mistune/commit/1bef343ade163fc3bb95572b15be720084cdb993 · Patch, WEB, FIX
- https://github.com/lepture/mistune/releases/tag/v3.3.0 · Release Notes, WEB, ADVISORY
- https://github.com/lepture/mistune/security/advisories/GHSA-r4rv-85jg-w4mf · Exploit, Vendor Advisory, WEB, EVIDENCE
- https://nvd.nist.gov/vuln/detail/CVE-2026-59924 · ADVISORY
- https://github.com/lepture/mistune · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2026-2212.yaml · WEB
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 8 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 8 Jul 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 20 Jul 2026)