Mistune: Path Traversal and XSS in Include directive
影響: pip:mistune <= 3.2.0 → 3.3.0
The Include directive in src/mistune/directives/include.py does not validate that the resolved file path stays within the source directory, allowing path traversal via ../ sequences to read arbitrary files. Additionally, error messages and included file contents are rendered without HTML escaping, leading to XSS even when escape=True. Affected functions: - Path resolution (lines 27-31) - block_error() in html.py (line 140) - render_html_include() (line 72) The Include plugin must be explicitly…
Read on GitHub Advisory Database
| CVE | CVE-2026-115355 |
|---|---|
| Source | GitHub Advisory Database |
| Fetched | 10/24/2026, 01:50 PM |
| Data | Markdown JSON |
On 10/24/2026, 05:46 AM, GitHub Advisory Database published "Mistune: Path Traversal and XSS in Include directive" (type: Advisory). Severity is "High" (high). Related technologies: Python. CVE: CVE-2026-115355.