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: 5.1 [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]
CVE-ID: CVE-2026-46338
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

pymdown-extensions

How to mitigate CVE-2026-46338

Install security update from vendor's website.

pymdown-extensions - update to 10.21.3

External References

Related Security Bulletins