Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. mistune
  4. ›
  5. CVE-2026-59924

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

July 20, 2026

A path traversal issue exists in mistune’s Include directive when markdown files are processed using md.read(). A crafted include path can cause files outside the intended markdown directory to be accessed.

References

  • github.com/advisories/GHSA-r4rv-85jg-w4mf
  • github.com/lepture/mistune/commit/1bef343ade163fc3bb95572b15be720084cdb993
  • github.com/lepture/mistune/releases/tag/v3.3.0
  • github.com/lepture/mistune/security/advisories/GHSA-r4rv-85jg-w4mf
  • github.com/pypa/advisory-database/tree/main/vulns/mistune/PYSEC-2026-2212.yaml
  • nvd.nist.gov/vuln/detail/CVE-2026-59924

Code Behaviors & Features

Detect and mitigate CVE-2026-59924 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 3.3.0

Fixed versions

  • 3.3.0

Solution

Upgrade to version 3.3.0 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/mistune/CVE-2026-59924.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:27 +0000.