Path traversal in pymdown-extensions - CVE-2026-46338
Published: May 14, 2026
pymdown-extensions
Detailed vulnerability description
The vulnerability allows a remote attacker to disclose sensitive information.
The vulnerability exists due to path traversal in SnippetPreprocessor.get_snippet_path() in pymdownx.snippets when processing a markdown snippet directive. A remote attacker can supply a crafted snippet path that traverses to a sibling directory sharing the same base-path prefix to disclose sensitive information.
User interaction is required to process attacker-controlled markdown content, such as in a documentation build pipeline.