# CVE-2026-115354: Mistune path traversal in Include directive

Source: https://junglewise.ai/threats/cve-2026-115354-mistune-before-3-3-0-contains-a-path-traversal-vulnerability-in  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-22. Updated: 2026-10-22  
License: CC BY 4.0 with a link back

CVE-2026-115354 · Severity: medium · CVSS 6.5 · Published 2026-10-22

Mistune is a Markdown parser library used to convert Markdown documents into HTML. When the optional Include directive is enabled, attackers can craft malicious Markdown files to read arbitrary files from the server (such as /etc/passwd) and inject unescaped code into the rendered output. This could lead to data exposure or code injection attacks if applications process untrusted Markdown files.

Technologies: [Lepture Mistune](https://junglewise.ai/threats/technologies/lepture-mistune). Vendors: [Lepture](https://junglewise.ai/threats/vendors/lepture).

## Quick answers

**Is CVE-2026-115354 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-115354 being exploited in the wild.

**How severe is CVE-2026-115354?** Medium severity, with a CVSS score of 6.5, published 22 October 2026.

**Which products and versions are affected?** Lepture Mistune before 3.3.0.

**Is there a fix for CVE-2026-115354?** Yes: fixed in 3.3.0. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-115354 attacked?** It is attacked over the network.

**Am I affected by CVE-2026-115354?** Check whether you run Lepture Mistune at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in 3.3.0

## Technical details

The vulnerability is a path traversal flaw in src/mistune/directives/include.py where the Include directive resolves file paths without validating against a root directory or allowlist. When Markdown.read(path) is called with attacker-controlled input, relative paths like "../secret.txt" or absolute paths allow reading files outside the intended directory. Non-Markdown included content is embedded in HTML without escaping, preserving HTML/script tags in the output.

## Affected products

- lepture Mistune before 3.3.0

## Timeline

- 2026-06-21: disclosed
- 2026-10-22: advisory

## References

- [https://github.com/lepture/mistune/security/advisories/GHSA-jhcm-5rpf-j3wv](https://github.com/lepture/mistune/security/advisories/GHSA-jhcm-5rpf-j3wv)
- [https://www.vulncheck.com/advisories/mistune-before-3.3.0-arbitrary-local-file-read-via-include-directive](https://www.vulncheck.com/advisories/mistune-before-3.3.0-arbitrary-local-file-read-via-include-directive)

## Related threats

- [Mistune path traversal and XSS in Include directive](https://junglewise.ai/threats/duplicate-advisory-mistune-path-traversal-and-xss-in-include-directive-bf25c187)
- [Mistune path traversal and XSS in Include directive](https://junglewise.ai/threats/cve-2026-115355-mistune-before-3-3-0-contains-a-path-traversal-vulnerability-in)
- [Mistune path traversal in RST include directive](https://junglewise.ai/threats/cve-2026-115353-mistune-before-3-3-0-contains-a-path-traversal-vulnerability-in)
- [Mistune algorithmic complexity DoS in inline link parser](https://junglewise.ai/threats/cve-2026-115352-mistune-before-3-3-0-contains-an-algorithmic-complexity)
- [Mistune CSS injection in figure directive](https://junglewise.ai/threats/cve-2026-115351-mistune-from-3-2-1-before-3-3-0-contains-a-css-injection)
