Path Traversal in Facelessuser Pymdown-Extensions
CVE-2026-46338
PyMdown Extensions is a set of extensions for the Python-Markdown markdown project. From 10.0.1 until 10.21.3, pymdownx.snippets uses a string-prefix containment check in SnippetPreprocessor.get_snippet_path() in pymdownx/snippets.py when `restrict_base_path: True`, allowing markdown snippet directives to read files from sibling paths that share the same base_path prefix, such as docs and docs_internal. This is a regression of CVE-2023-32309. This issue is fixed in version 10.21.3.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 4.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N.
EPSS exploit prediction
EPSS: 0.004 (32.8th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 33rd percentile — 32.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.004 · change: 0.000
Affected products
- Facelessuser Pymdown-Extensions — versions >= 10.0.1, < 10.21.3
- Facelessuser Pymdown Extensions
Weakness classification (CWE)
References
- github.com/facelessuser/pymdown-extensions/security/advisories/GHSA-62q4-447f-w… (Exploit, Mitigation, Vendor Advisory)
- github.com/facelessuser/pymdown-extensions/commit/63b7835776d703d6c339cf2110d98… (Patch)
- github.com/facelessuser/pymdown-extensions/releases/tag/10.21.3 (Product, Release Notes)
Frequently asked questions
- What is CVE-2026-46338?
- CVE-2026-46338 is a medium-severity vulnerability in Facelessuser Pymdown-Extensions, classified under Path Traversal. CVSS score: 4.3/10. Published 2026-07-16.
- How severe is CVE-2026-46338?
- Medium severity. CVSS v3 base score is 4.3 out of 10.