{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-46338","id":"CVE-2026-46338","title":"PyMdown Extensions: Regression in pymdownx.snippets reintroduces sibling-prefix path traversal bypass despite restrict_base_path","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_int","descriptionLong":"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.","published":"2026-07-16T18:24:18.155Z","updated":"2026-10-28T02:30:53.694392378Z","reserved":"2026-05-13T18:37:30.990Z","status":"Analyzed","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","rating":"medium","source":"GitHub_M"},"metrics":[{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","rating":"medium","source":"GitHub_M"},{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","rating":"medium","source":"github.com"},{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":4.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["facelessuser pymdown-extensions"],"affectedProducts":[{"vendor":"facelessuser","product":"pymdown-extensions","defaultStatus":null,"versions":[{"version":">= 10.0.1, < 10.21.3","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"pymdown-extensions","purl":"pkg:pypi/pymdown-extensions","ranges":[">=10.0.1 <10.21.3"],"fixed":["10.21.3"],"advisory":"GHSA-62q4-447f-wv8h"}],"cwes":["CWE-22"],"aliases":["GHSA-62q4-447f-wv8h","PYSEC-2026-2999"],"references":[{"url":"https://github.com/facelessuser/pymdown-extensions/security/advisories/GHSA-62q4-447f-wv8h","tags":["x_refsource_CONFIRM","exploit","Exploit","Mitigation","Vendor Advisory","advisory","web"]},{"url":"https://github.com/facelessuser/pymdown-extensions/commit/63b7835776d703d6c339cf2110d9888f676efc0c","tags":["x_refsource_MISC","Patch","fix"]},{"url":"https://github.com/facelessuser/pymdown-extensions/releases/tag/10.21.3","tags":["x_refsource_MISC","Product","Release Notes","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46338.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46338","tags":["advisory"]},{"url":"https://github.com/facelessuser/pymdown-extensions/pull/2039","tags":["web"]},{"url":"https://github.com/facelessuser/pymdown-extensions","tags":["package"]},{"url":"https://pypi.org/project/pymdown-extensions","tags":["package"]},{"url":"https://github.com/advisories/GHSA-62q4-447f-wv8h","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00398,"epssPercentile":0.34736,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-46338","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46338","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-46338","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-62q4-447f-wv8h","ok":true,"note":"GHSA-62q4-447f-wv8h"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-46338","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}