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.
{
"cna_assigner": "GitHub_M",
"cwe_ids": [
"CWE-22"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46338.json"
}{
"extracted_events": [
{
"cpe": "cpe:2.3:a:facelessuser:pymdown_extensions:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "10.0.1"
},
{
"fixed": "10.21.3"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "63b7835776d703d6c339cf2110d9888f676efc0c"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "10.21.3",
"range": [
{
"fixed": "42628414c6591b1a1ce211157090783e3b2242d6"
}
],
"source": "REFERENCES_TAG"
}
]
}