Skip to main content

Mistune CVE-2026-115355

| EUVDEUVD-2026-108425 HIGH
Path Traversal (CWE-22)
2026-10-22 disclosure@vulncheck.com GHSA-8cqv-vvq2-6p8c GHSA-h7ww-273w-6cm8
8.7
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit markdown containing Include directive
  2. Exploit
    Inject ../ traversal path or unescaped HTML
  3. Execution
    Parser resolves path outside source directory
  4. Impact
    Read arbitrary files or trigger stored XSS

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the Include directive plugin to be explicitly enabled via mistune's plugins parameter - this is not a default configuration - and the application must parse attacker-influenced markdown. For the path traversal, the attacker supplies ../ sequences in an include path within that markdown to escape the intended source directory and read arbitrary files relative to it. For the XSS, the output must be rendered in a victim's browser, and the issue persists even when escape=True because error messages and included file contents are emitted without HTML escaping. The primary limiting factor is the non-default plugin requirement; where the Include plugin is not enabled, the application is not exposed.

Impact

The input CVSS 4.0 vector (CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H, score 8.7) rates this network-reachable, low-complexity, and requiring no privileges or user interaction, with high confidentiality impact only. This aligns with the path traversal primitive (arbitrary file read via ../ sequences). However, two signals qualify the raw score. First, the GHSA advisory confirms the Include plugin must be explicitly enabled via the plugins parameter - it is NOT a default configuration - so the network/no-privilege profile only materializes where an application both enables that plugin AND parses attacker-controlled markdown. Second, the provided vector marks VI:N despite the description clearly documenting XSS (HTML injection even when escape=True), so the vector arguably understates integrity impact. No EPSS score was provided (missing, not low), the CVE is not listed in CISA KEV, and the references are vendor/coordinator advisories rather than confirmed working exploit code; therefore this is no public exploit identified at time of analysis. The vuln.today decision label is 'this_week', consistent with a serious but not emergency-level priority. Net: a genuine high-severity library flaw whose real-world exploitability is gated by a non-default plugin configuration and attacker-controlled input, rather than a flaw affecting every mistune deployment.

Exploit ScenarioDerived

An application uses mistune (<= 3.2.0) with the Include directive plugin explicitly enabled to render user-submitted or externally-sourced markdown. An attacker submits markdown containing an Include directive with ../ sequences, causing the parser to resolve a path outside the intended source directory and return the contents of an arbitrary file (e.g. configuration or credential files); the attacker can alternatively inject HTML through unescaped error messages or included file content to achieve XSS in a viewer's browser. No public working exploit code is identified at time of analysis, only coordinator advisories.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 22, 2026

Path traversal and cross-site scripting in Mistune through 3.2.0 allow unauthenticated remote attackers to read files outside the intended source directory and inject HTML/script into rendered output when the optional Include directive plugin is enabled and untrusted markdown is processed. The flaw is not reachable in default configurations because the Include plugin must be explicitly added via the plugins parameter; where enabled, ../ sequences in include paths escape the source directory, and error messages and included file contents are emitted without HTML escaping even with escape=True. No public exploit identified at time of analysis, and the vendor-released fix is Mistune 3.3.0.

RemediationAI

Upgrade to Mistune 3.3.0 (Vendor-released patch: 3.3.0), which corrects the Include directive path validation and the unescaped error and include-content rendering. If immediate upgrade is not possible, disable the Include directive by omitting it from the plugins parameter; because the plugin is non-default, applications that do not enable it are not exposed, though this removes include functionality. Do not rely on escape=True as a workaround, since the XSS persists through error messages and included file contents; avoid rendering attacker-controlled markdown while the Include plugin is enabled. Vendor advisory: https://github.com/lepture/mistune/security/advisories/GHSA-h7ww-273w-6cm8; VulnCheck advisory: https://www.vulncheck.com/advisories/mistune-before-3.3.0-path-traversal-and-xss-via-include-directive.

Affected VersionsENISA

mistune 0 <3.3.0

Affected Packages

pypi mistune fix: 3.3.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Mistune is a Python markdown parser; its Include directive is an optional plugin implemented in src/mistune/directives/include.py that resolves include paths and embeds file contents during rendering. The CWE-22 root cause is that path resolution at lines 27-31 does not verify the resolved path remains inside the source directory, so an include path containing ../ can traverse upward and read files outside that directory. The same plugin also renders error output through block_error() in html.py (line 140) and included content through render_html_include() (line 72) without HTML escaping, producing cross-site scripting even when the parser is configured with escape=True. Exposure requires the Include plugin to be explicitly enabled via the plugins parameter and the application to parse attacker-influenced markdown; without that non-default configuration, the vulnerable code paths are not active.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (vulncheck) PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 8.2 HIGH

Attacker-controlled markdown with the Include plugin enabled needs no privileges (PR:N); arbitrary file read gives C:H, HTML/XSS injection gives I:L, with no availability impact.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N
Red Hat 7.5 HIGH

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Oct 22, 2026 - 20:18 EUVD
CVE Published
Oct 22, 2026 - 19:17 cve.org
HIGH 8.7

DescriptionCVE.org

Mistune before 3.3.0 contains a path traversal vulnerability in the Include directive that allows attackers to read arbitrary files by supplying ../ sequences in include paths. Attackers can also inject HTML through unescaped error messages and included file contents to perform cross-site scripting even when escape=True is set.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 1 pypi packages depend on mistune (1 direct, 0 indirect)

Ecosystem-wide dependent count for version 3.3.0.

Technical POC Analysis

The Include directive plugin performs no containment check on the path it resolves.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A high-severity vulnerability in the Mistune markdown parser (through version 3.2.0) could allow unauthenticated attackers to read sensitive files and inject malicious scripts into rendered content, but only when the optional Include plugin is explicitly enabled. Organizations using Mistune with this non-default configuration face potential data exposure and cross-site scripting risks that could compromise user sessions or leak confidential information. Leadership should prioritize identifying affected applications and applying the vendor's fix to prevent exploitation.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 68% exploitable
Prevalence
Medium
popular pure-Python markdown library, widely embedded but not ubiquitous
Threat Intel
1
1 source
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy