CVE-2026-115355 · GHSA-h7ww-273w-6cm8
Mistune: Path Traversal and XSS in Include directive
- Risk score
- 61/100
- CVSS
- 7.5 v3.1
- Exploit chance (30 days)
- 0.4%
- Published
- 22 Oct 2026
Open in the live forecast Today's forecast
What to know
- What it is
- 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=Tr…
- Affected
- mistune (pip) <= 3.2.0
- Fix
- Upgrade mistune to 3.3.0 or later.
- Exploitation
- No known exploitation
Why it is Amber
- CVSS 7.5 high
- Remotely exploitable without logging in
- On your watchlist: PyPI
Affected packages
| Package | Ecosystem | Vulnerable | Fixed in |
|---|---|---|---|
| mistune | pip | <= 3.2.0 | 3.3.0 |
References
- https://github.com/lepture/mistune/security/advisories/GHSA-h7ww-273w-6cm8
- https://www.vulncheck.com/advisories/mistune-before-3.3.0-path-traversal-and-xss-via-include-directive
- https://github.com/advisories/GHSA-h7ww-273w-6cm8
- https://nvd.nist.gov/vuln/detail/CVE-2026-115355
- https://github.com/lepture/mistune/commit/1bef343ade163fc3bb95572b15be720084cdb993
- https://github.com/lepture/mistune/releases/tag/v3.3.0
- https://github.com/advisories/GHSA-h7ww-273w-6cm8
Original description
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.
Last activity 23 Oct 2026. Patch Forecast updates every hour.