Description
Mistune before 3.3.0 contains a path traversal vulnerability in the opt-in Include directive that allows attackers to read local files by supplying relative or absolute include paths. Attackers who submit Markdown rendered via Markdown.read() can disclose files such as /etc/passwd and inject unescaped HTML or script content into rendered output.
Published: 2026-10-22
Score: 7.1 High
EPSS: < 1% Very Low
KEV: No
Impact: Local File Disclosure
Action: Patch
AI Analysis

Impact

A path traversal flaw exists in the optional Include directive of Mistune versions prior to 3.3.0. The vulnerability allows an attacker to craft a Markdown payload that instructs the renderer to read non‑existent or unintended files on the local filesystem, including privilege‑sensitive files such as /etc/passwd. The attacker can then inject arbitrary HTML or script content into the rendered output, potentially leading to cross‑site scripting or output disclosure. The weakness is classified as CWE‑22: Path Traversal.

Affected Systems

The flaw impacts all installations of the Mistune library provided by the Mistune project, specifically versions before 3.3.0. Any software that imports and uses Mistune to render user‑supplied Markdown is affected.

Risk and Exploitability

The CVSS base score of 7.1 indicates a moderate to high impact, while no EPSS data is available and the vulnerability is not listed in CISA’s KEV catalog. Exploitation requires the attacker to supply a crafted Markdown document to the Markdown.read() function; therefore, the attack is limited to systems that expose this function to untrusted input, such as web applications or APIs. As long as an attacker can submit arbitrary Markdown, the file read can be executed locally on the host running the renderer.

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, which removes the vulnerable Include directive path traversal flaw.
  • If an upgrade is not possible, disable the optional Include directive by configuring the renderer to reject include directives or removing the plugin that enables them.
  • Restrict the handling of user‑supplied Markdown to trusted contexts and enforce input validation or sanitization to eliminate any include directives and strip potentially unsafe content before rendering.

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 12:30:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


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 opt-in Include directive that allows attackers to read local files by supplying relative or absolute include paths. Attackers who submit Markdown rendered via Markdown.read() can disclose files such as /etc/passwd and inject unescaped HTML or script content into rendered output.
Title Mistune before 3.3.0 Arbitrary Local File Read 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': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N'}

cvssV4_0

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


Subscriptions

Mistune Project Mistune
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

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

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

Link: CVE-2026-115354

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

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

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

Link: CVE-2026-115354

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-22T19:13:31Z

Links: CVE-2026-115354 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-23T11:45:17Z

Weaknesses
  • CWE-22

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