Directory Traversal Vulnerability in PyMdown Extensions by Facelessuser
CVE-2026-46338
4.3MEDIUM
What is CVE-2026-46338?
A directory traversal vulnerability exists in the PyMdown Extensions, specifically in the snippet handling component. When 'restrict_base_path' is set to True, the SnippetPreprocessor's get_snippet_path() method improperly allows access to sibling directory files, enabling potential unauthorized file reads. This issue surfaced as a regression of a previous vulnerability and affects various versions between 10.0.1 and 10.21.2. Users are advised to upgrade to version 10.21.3 or later to mitigate this risk.
Affected Version(s)
pymdown-extensions >= 10.0.1, < 10.21.3
