{"cve":"CVE-2026-46338","nvd":{"published":"2026-07-16T19:16:45.733","modified":"2026-10-24T20:10:00.137","status":"Analyzed","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","score":4.3},"cwes":["CWE-22"],"references":["https://github.com/facelessuser/pymdown-extensions/commit/63b7835776d703d6c339cf2110d9888f676efc0c","https://github.com/facelessuser/pymdown-extensions/releases/tag/10.21.3","https://github.com/facelessuser/pymdown-extensions/security/advisories/GHSA-62q4-447f-wv8h","https://github.com/facelessuser/pymdown-extensions/security/advisories/GHSA-62q4-447f-wv8h"],"products":["facelessuser:pymdown_extensions"],"source":"nvd","synced_at":"2026-10-25T17:50:08.599881581+00:00"},"epss":{"cve":"CVE-2026-46338","score":0.00398,"percentile":0.33709,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-62q4-447f-wv8h","url":"https://osv.dev/vulnerability/GHSA-62q4-447f-wv8h","summary":"Regression in pymdownx.snippets reintroduces sibling-prefix path traversal bypass despite restrict_base_path","modified":"2026-09-10T03:50:45.703936995Z","packages":[{"ecosystem":"PyPI","name":"pymdown-extensions","purl":"pkg:pypi/pymdown-extensions","ranges":[">=10.0.1 <10.21.3"],"fixed":["10.21.3"]}]},{"id":"PYSEC-2026-2999","url":"https://osv.dev/vulnerability/PYSEC-2026-2999","summary":"Regression in pymdownx.snippets reintroduces sibling-prefix path traversal bypass despite restrict_base_path","modified":"2026-07-13T16:33:07.759730233Z","packages":[{"ecosystem":"PyPI","name":"pymdown-extensions","purl":"pkg:pypi/pymdown-extensions","ranges":[">=10.0.1 <10.21.3"],"fixed":["10.21.3"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}