Path traversal in pymdown-extensions - CVE-2026-46338

 

Path traversal in pymdown-extensions - CVE-2026-46338

Published: May 14, 2026


Vulnerability identifier: #VU131443
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-46338
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: facelessuser (Isaac Muse)
Affected software:
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.


How to mitigate CVE-2026-46338

Install security update from vendor's website.

Sources