Skip to main content

Mistune EUVDEUVD-2026-108422

| CVE-2026-115353 CRITICAL
Path Traversal (CWE-22)
2026-10-22 disclosure@vulncheck.com GHSA-pfvv-4pq6-mx74
9.2
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

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

  1. Access
    Submit markdown with crafted include directive
  2. Delivery
    Path resolves outside base via os.path.join/normpath flaw
  3. Exploit
    Renderer opens arbitrary file as its process
  4. Execution
    File contents embedded in rendered HTML
  5. Impact
    Read back secrets from application output

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 three concrete conditions, all confirmed by the GHSA advisory: (1) the application must enable the RST Include directive via RSTDirective([Include()]) in its mistune plugin list - this is NOT a default configuration; (2) the integration must set state.env['__file__'] to a filesystem path, which is the documented setup for rendering on-disk markdown and resolving relative includes; and (3) the attacker must be able to supply markdown that this renderer processes. Given those, no authentication or user interaction is needed (vector is PR:N/UI:N) and both '../' relative traversal and absolute paths like '/etc/passwd' work. Files readable are limited to those accessible to the renderer process (e.g. /etc/passwd, /proc/self/environ, the app's .env, ~/.aws/credentials). A second, conditional mode applies only when the application also sets escape=False and the attacker can place a '.html' file, yielding stored XSS. The principal LIMITING factor is that the Include directive is opt-in: deployments that do not enable it, or do not set __file__, are not exploitable.

Impact

Signals mostly align toward high priority but with one important caveat. CVSS 4.0 is 9.2 (AV:N/AC:L/AT:N/PR:N/UI:N, VC:H and subsequent-system SC:H), and the vuln.today decision label is act_now, indicating this should be treated as urgent. A working proof-of-concept is published inside the GHSA advisory itself (author-verified against mistune 3.2.1 with ../../../etc/passwd and /etc/passwd payloads), so exploitation is trivial where applicable. Countervailing signals: there is no CISA KEV listing (no confirmed active exploitation) and no EPSS score was supplied, so widespread opportunistic exploitation is not evidenced - treat urgency as driven by ease-of-exploit and PoC availability rather than observed in-the-wild activity. The most important nuance the raw CVSS hides: PR:N/UI:N is accurate only once the application has opted into the non-default RST Include directive and set state.env['__file__']. The base vector does not encode that deployment precondition, so the 9.2 overstates universal risk - for apps that enable the Include plugin it is a trivially exploitable unauthenticated arbitrary-file-read, but apps that never enable it are not exposed. This is a genuine priority for the affected configuration, not a paper high-CVSS issue, but exposure must be confirmed per deployment.

Exploit ScenarioDerived

An application renders user-submitted markdown with the RST Include directive enabled and __file__ set to the source path. An attacker submits markdown containing '.. include:: ../../../etc/passwd' (or an absolute path such as '/etc/passwd', which os.path.join resolves verbatim), and the renderer reads the file and embeds its contents in the returned HTML, leaking credentials, .env secrets, or /proc/self/environ. A verified PoC demonstrating both the relative-traversal and absolute-path bypass is published in the GHSA advisory.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
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

Arbitrary file read in Mistune's RST .. include:: directive affects versions before 3.3.0: unauthenticated attackers able to submit markdown to a renderer with the Include plugin enabled can embed any file the rendering process can open - /etc/passwd, /proc/self/environ, an application's .env, ~/.aws/credentials - into the rendered HTML via ../ traversal or an absolute path. The directive is opt-in: only integrations that register RSTDirective([Include()]) and set state.env['__file__'] are exposed, while default Mistune deployments and renderers that never set __file__ are not affected. The GHSA advisory includes a proof-of-concept verified against mistune 3.2.1, and the flaw is fixed in 3.3.0.

RemediationAI

Upgrade to mistune 3.3.0, the version in which the traversal is fixed, and re-test any integration that relies on .. include:: directives. If an immediate upgrade is not possible, the most effective control is to stop enabling the directive for content you do not fully trust: remove RSTDirective([Include()]) from the plugin list, or avoid setting state.env['__file__'] for attacker-influenced markdown - without __file__ the plugin returns a block_error and performs no read, at the cost of losing relative-include functionality for legitimate documentation trees. Where the directive must stay enabled, apply the advisory's containment patch (resolve base and dest with os.path.realpath and reject the include when os.path.isabs(relpath) or os.path.commonpath([base, dest]) != base), which blocks .. traversal, absolute paths and symlink-following escapes while preserving sibling-file includes. Separately, consider the advisory's defense-in-depth option of removing the .html/.xhtml/.htm inclusion branch or always escaping included HTML, since combined with escape=False that branch yields stored XSS; this is a behavioural change for any corpus that intentionally embeds HTML. Details and the upstream diff are in GHSA-9jjx-3hq3-hx4j.

Affected VersionsENISA

mistune 0 <3.3.0

Affected Packages

euvd mistune fix: 3.3.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

The issue is a CWE-22 (and CWE-73) path traversal in src/mistune/directives/include.py (lines 28-46). The directive argument is taken verbatim from the markdown source via parse_title(), then joined to the source file's directory with os.path.join and normalised with os.path.normpath. This is the classic traversal anti-pattern: os.path.join(base, '/etc/passwd') discards the base because the second component is absolute, and normpath collapses .. segments without ever checking that the resolved path stays inside a base directory. The only guards present are a self-include rejection and an os.path.isfile() existence check, both of which pass for /etc/passwd, /proc/self/environ, the application's .env or ~/.aws/credentials. Included content is parsed as markdown for .md/.markdown/.mkd, emitted as raw block_html for .html/.xhtml/.htm, or wrapped in <pre class="directive-include"> otherwise. When the host application also renders with escape=False, the HTML branch turns the read primitive into stored XSS. The advisory's suggested fix resolves real paths and enforces containment with os.path.commonpath([base, dest]) == base (rejecting absolute and escaping paths, including symlink escapes), optionally dropping or always escaping the HTML inclusion branch. The assessed vector scores this as confidentiality-only with a scope change (S:C/C:H/I:N/A:N), reflecting data exposure across the renderer's process boundary; exploitation hinges entirely on the opt-in Include directive and a configured __file__.

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 9.2 CRITICAL
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
vuln.today AI 8.6 HIGH

Remote unauthenticated markdown submission to a renderer with Include enabled reads files outside the component's authorization scope (S:C, C:H); default path has no integrity/availability impact.

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

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
High
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
CRITICAL 9.2

DescriptionCVE.org

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.

Technical POC Analysis

CWE-22 path traversal in src/mistune/directives/include.py, Include.parse, in mistune versions <= 3.2.1.

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 critical vulnerability in Mistune, a widely-used Markdown rendering library, could allow unauthenticated attackers to read sensitive files from servers where certain optional features are enabled. This impacts only applications that have specifically configured the RST include directive; all other deployments are not at risk. If exploited, attackers could access credentials and system files, leading to data breaches and further compromise.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 68% exploitable
Prevalence
Medium
popular Python markdown library, but vulnerable RST Include config is opt-in
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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.4%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
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

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

Attack Technique

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

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