# CVE-2026-59924: Mistune: Arbitrary File Read via Include directive path traversal

- Severity: Medium 5.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-08T16:22:11.116Z
- Modified: 2026-10-25T17:10:00.197Z
- Also known as: GHSA-r4rv-85jg-w4mf, PYSEC-2026-2212
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, Include.parse() joins and normalizes user-supplied include paths without verifying that the result remains within the intended markdown directory, allowing crafted include paths to access files outside that directory when markdown files are processed using md.read(). This issue is fixed in version 3.3.0.

(As written by CVE List.)

## Affected

- lepture mistune: < 3.3.0
- mistune (PyPI): before 3.3.0
- mistune_project mistune: before 3.3.0

## Every score

- GitHub_M: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/lepture/mistune/security/advisories/GHSA-r4rv-85jg-w4mf> (exploit, evidence, vendor-advisory, web)
- <https://github.com/lepture/mistune/commit/1bef343ade163fc3bb95572b15be720084cdb993> (fix, patch, web)
- <https://github.com/lepture/mistune/releases/tag/v3.3.0> (advisory, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59924> (advisory)
- <https://github.com/lepture/mistune> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2026-2212.yaml> (web)

## Sources

- CVE List: [CVE-2026-59924](https://www.cve.org/CVERecord?id=CVE-2026-59924), CVE Terms of Use, modified 2026-07-08
- GitHub Advisory Database: [GHSA-r4rv-85jg-w4mf](https://github.com/advisories/GHSA-r4rv-85jg-w4mf), CC-BY-4.0, modified 2026-07-20
- NVD: [CVE-2026-59924](https://nvd.nist.gov/vuln/detail/CVE-2026-59924), Public domain, modified 2026-10-25
- PyPA Advisory Database: [PYSEC-2026-2212](https://osv.dev/vulnerability/PYSEC-2026-2212), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-59924 · Whole record: https://cve.day/CVE-2026-59924.json · Rebuilt by cve.day 2026-11-25T22:59:27.403Z
