---
id: CVE-2026-115355
title: Mistune before 3.3.0 Path Traversal and XSS via Include Directive
summary: >-
  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 messa…
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'
cvssSource: cna
cwe:
  - CWE-22
vendor: lepture
product: mistune
affected:
  - mistune < 3.3.0
published: '2026-10-22'
updated: '2026-10-22'
sourceUpdated: '2026-10-22T19:13:31.904Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-115355'
references:
  - url: 'https://github.com/lepture/mistune/security/advisories/GHSA-h7ww-273w-6cm8'
    label: GitHub Security Advisory (GHSA-h7ww-273w-6cm8)
  - url: >-
      https://www.vulncheck.com/advisories/mistune-before-3.3.0-path-traversal-and-xss-via-include-directive
    label: >-
      VulnCheck Advisory: Mistune before 3.3.0 Path Traversal and XSS via
      Include Directive
tags:
  - cve.org
ingestedAt: '2026-10-22T22:00:50.398Z'
---

## Overview

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.

## Affected

- `mistune < 3.3.0`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
