Directory Traversal in Mistune Python Markdown Parser by Lepture
CVE-2026-59924

5.9MEDIUM

Key Information:

Vendor

Lepture

Status
Vendor
CVE Published:
8 July 2026

What is CVE-2026-59924?

The Mistune Python Markdown parser is vulnerable to a directory traversal issue. Prior to version 3.3.0, the Include.parse() method combines user-supplied include paths without confirming that the resolved path remains confined within the designated markdown directory. This vulnerability can be exploited through specially crafted include paths, potentially granting unauthorized access to files outside the intended directory during the processing of markdown files. Users are advised to update to version 3.3.0 or later to mitigate this issue.

Affected Version(s)

mistune < 3.3.0

References

CVSS V3.1

Score:
5.9
Severity:
MEDIUM
Confidentiality:
High
Integrity:
None
Availability:
High
Attack Vector:
Network
Attack Complexity:
High
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.