{"id":"CVE-2026-46338","published":"2026-07-16T18:24:18Z","modified":"2026-07-17T17:52:57Z","title":"PyMdown Extensions: Regression in pymdownx.snippets reintroduces sibling-prefix path traversal bypass despite…","vendor":"facelessuser","product":"pymdown-extensions","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00398,"percentile":0.34871,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/facelessuser/pymdown-extensions/security/advisories/GHSA-62q4-447f-wv8h","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/facelessuser/pymdown-extensions/commit/63b7835776d703d6c339cf2110d9888f676efc0c","tags":["x_refsource_MISC"]},{"url":"https://github.com/facelessuser/pymdown-extensions/releases/tag/10.21.3","tags":["x_refsource_MISC"]}],"priority":{"score":10.0,"factors":[{"name":"EPSS percentile","points":6.97},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"facelessuser","affectedVersions":[{"vendor":"facelessuser","product":"pymdown-extensions","versions":[">= 10.0.1, < 10.21.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-17T17:52:47.052382Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pymdown-extensions","vulnerableRanges":[">=10.0.1, <10.21.3"],"patched":["10.21.3"],"from":["GHSA-62q4-447f-wv8h","PYSEC-2026-2999"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-45003","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-facelessuser-pymdown-extensions-cve-2023-32309","parents":[{"from":"CVE-2023-32309","to":"CVE-2026-46338","relation":"regression","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"regression","quote":"This is a regression of CVE-2023-32309.","from":"CVE.org","in":"CVE-2026-46338"},{"kind":"same-code","provenance":"machine","files":["pymdownx/__meta__.py","pymdownx/snippets.py"],"commits":["https://github.com/facelessuser/pymdown-extensions/commit/b7bb4878d6017c03c8dc97c42d8d3bb6ee81db9d","https://github.com/facelessuser/pymdown-extensions/commit/63b7835776d703d6c339cf2110d9888f676efc0c"],"basis":"shared function","functions":["get_snippet_path","parse_version"]}]},{"from":"CVE-2025-68142","to":"CVE-2026-46338","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pymdown-extensions","fromFixed":"10.16.1","toFixed":"10.21.3","daysApart":212},{"kind":"same-code","provenance":"machine","files":["pymdownx/__meta__.py"],"commits":["https://github.com/facelessuser/pymdown-extensions/commit/b50d15a56850ed1408a284bba81cc019c6bd72e8","https://github.com/facelessuser/pymdown-extensions/commit/63b7835776d703d6c339cf2110d9888f676efc0c"],"basis":"shared function","functions":["parse_version"]}]}],"children":[{"from":"CVE-2026-46338","to":"CVE-2026-67422","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pymdownx/__meta__.py"],"commits":["https://github.com/facelessuser/pymdown-extensions/commit/63b7835776d703d6c339cf2110d9888f676efc0c","https://github.com/facelessuser/pymdown-extensions/commit/c68498598d7b13011bb4571350b6e3612a4ce44b"],"basis":"shared function","functions":["parse_version"]}]}],"packageHistory":[{"cve":"CVE-2023-32309","published":"2023-05-15","fixed":"10.0","kev":false},{"cve":"CVE-2025-68142","published":"2025-12-16","fixed":"10.16.1","kev":false},{"cve":"CVE-2026-46338","published":"2026-07-16","fixed":"10.21.3","kev":false},{"cve":"CVE-2026-61632","published":"2026-08-06","fixed":"11.0.0","kev":false},{"cve":"CVE-2026-67422","published":"2026-08-06","fixed":"11.0.1","kev":false}],"package":"PyPI:pymdown-extensions"}}