Description
Mistune before 3.3.0 contains a path traversal vulnerability in the RST include directive that allows attackers to read arbitrary files by supplying relative or absolute paths. Attackers can submit markdown containing include directives referencing ../ sequences or absolute paths to embed sensitive files like credentials or environment data in rendered HTML.
Published: 2026-10-22
Score: 9.2 Critical
EPSS: n/a
KEV: No
Impact: Remote File Disclosure
Action: Apply Patch
AI Analysis

Impact

The flaw is a path traversal vulnerability located in the RST include directive of Mistune, a markdown parsing library. It allows an attacker to specify relative or absolute paths containing directory traversal sequences (e.g., '../') in the markdown input. When the library processes the include directive, it resolves the path without proper validation and reads the target file, embedding its contents into the rendered HTML. This capability can expose sensitive files such as credentials, configuration data, or environment variables, violating confidentiality. The weakness is documented as CWE-22.

Affected Systems

All versions of Mistune released before 3.3.0 are affected, regardless of the installation environment. The product is distributed by Lepture and is commonly used in Python applications that render user-supplied markdown. Any system that incorporates those pre‑3.3.0 releases for processing markdown is at risk.

Risk and Exploitability

The CVSS score of 9.2 indicates a critical severity, and the vulnerability is highly exploitable when an attacker can inject markdown input processed by Mistune. The EPSS score is not available, but the fact that the flaw permits reading arbitrary files without authentication or other prerequisites makes exploitation straightforward once input is accepted. The vulnerability is not listed in the CISA KEV catalog. The attack vector is inferred to be local or remote, depending on whether the markdown source is user controlled; no specific network exposure is required, so defense in depth and input validation are critical.

Generated by OpenCVE AI on October 23, 2026 at 04:00 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Mistune to version 3.3.0 or later to remove the pathname handling bug.
  • If an upgrade is infeasible, configure the parser to disable or strip the RST include directive before rendering markdown. This eliminates the code path that performs the insecure file read.
  • Implement path normalization checks that restrict include directives to a validated whitelist directory, ensuring that any relative paths resolve only within allowed locations and that absolute paths are rejected.

Generated by OpenCVE AI on October 23, 2026 at 04:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 23 Oct 2026 04:00:00 +0000

Type Values Removed Values Added
First Time appeared Lepture
Lepture mistune
Vendors & Products Lepture
Lepture mistune

Fri, 23 Oct 2026 00:45:00 +0000

Type Values Removed Values Added
Description Mistune before 3.3.0 contains a path traversal vulnerability in the RST include directive that allows attackers to read arbitrary files by supplying relative or absolute paths. Attackers can submit markdown containing include directives referencing ../ sequences or absolute paths to embed sensitive files like credentials or environment data in rendered HTML.
Title Mistune before 3.3.0 Path Traversal via include Directive
First Time appeared Mistune Project
Mistune Project mistune
Weaknesses CWE-22
CPEs cpe:2.3:a:mistune_project:mistune:*:*:*:*:*:*:*:*
Vendors & Products Mistune Project
Mistune Project mistune
References
Metrics cvssV3_1

{'score': 8.6, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N'}

cvssV4_0

{'score': 9.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N'}


Subscriptions

Lepture Mistune
Mistune Project Mistune
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-22T19:13:30.422Z

Reserved: 2026-10-22T11:20:02.626Z

Link: CVE-2026-115353

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-10-22T19:17:41.227

Modified: 2026-10-22T19:17:41.337

Link: CVE-2026-115353

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T04:15:18Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')