CVE-2026-59924: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in lepture mistune
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.
AI Analysis
Technical Summary
CVE-2026-59924 describes a path traversal vulnerability (CWE-22) in the Mistune Python Markdown parser before version 3.3.0. The Include.parse() function improperly joins and normalizes user-supplied include paths without verifying that the resulting path remains within the intended markdown directory. This flaw allows an attacker to craft include paths that access files outside the restricted directory during markdown file processing via md.read(). The vulnerability is resolved in Mistune version 3.3.0.
Potential Impact
An attacker can exploit this vulnerability to read files outside the intended markdown directory by supplying malicious include paths. This can lead to unauthorized disclosure of sensitive files. The vulnerability does not affect integrity or availability, only confidentiality.
Mitigation Recommendations
Upgrade Mistune to version 3.3.0 or later, where this path traversal vulnerability is fixed. No other mitigation or workaround is indicated in the available data.
CVE-2026-59924: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in lepture mistune
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.
CVSS v3.1
Score 5.9medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-59924 describes a path traversal vulnerability (CWE-22) in the Mistune Python Markdown parser before version 3.3.0. The Include.parse() function improperly joins and normalizes user-supplied include paths without verifying that the resulting path remains within the intended markdown directory. This flaw allows an attacker to craft include paths that access files outside the restricted directory during markdown file processing via md.read(). The vulnerability is resolved in Mistune version 3.3.0.
Potential Impact
An attacker can exploit this vulnerability to read files outside the intended markdown directory by supplying malicious include paths. This can lead to unauthorized disclosure of sensitive files. The vulnerability does not affect integrity or availability, only confidentiality.
Mitigation Recommendations
Upgrade Mistune to version 3.3.0 or later, where this path traversal vulnerability is fixed. No other mitigation or workaround is indicated in the available data.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-07T18:20:06.125Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a4e81d8c9d9e3dbe3746a50
Added to database: 07/08/2026, 16:59:04 UTC
Last enriched: 07/08/2026, 17:13:38 UTC
Last updated: 08/22/2026, 10:52:10 UTC
Views: 80
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.