CVE-2026-46338: PyMdown Extensions: Regression in pymdownx.snippets reintroduces sibling-prefix path traversal bypass despite restrict_base_path
Vulnerability summary
CVE-2026-46338 is a medium (CVSS 4.3) vulnerability in facelessuser pymdown_extensions. EPSS estimates a 0.40% chance of exploitation in the next 30 days, higher than 34% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 4.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 0 · Related 1Timeline
- 16-07-2026PublishedVulnerability first disclosed.
- 17-07-2026Last modifiedVulnerability information updated.
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 metrics
7 scores · 7 sources · 1 version- OSV · PypiEcosystem advisory · calculated4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
- OSV · UbuntuEcosystem advisory · calculated4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
- OSV · DebianEcosystem advisory · calculated4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
- OSV · WolfiEcosystem advisory · calculated4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
- OSV · ChainguardEcosystem advisory · calculated4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
- NVDNIST4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
EPSS trend
Probability
0.40%
Chance of exploitation in the next 30 days
Percentile
34%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.40% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundPymdown Extensions
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Facelessuser2 products
- pymdown_extensions≥ 10.0.1, < 10.21.3
- pymdown-extensions≥ 10.0.1, < 10.21.3
Chainguard1 product
- open-webui< 0.9.6-r1
Debian1 product
- pymdown-extensionsAll versions (No fix recorded) | < 11.0.1-1
PyPI1 product
- pymdown-extensions≥ 10.0.1, < 10.21.3
Ubuntu1 product
- pymdown-extensionsAll versions (No fix recorded)
Wolfi1 product
- open-webui< 0.9.6-r1
6 vendors · 7 products
References
12 links- github.com/facelessuser/pymdown-extensions/security/advisories/GHSA-62q4-447f-wv8hX Refsource CONFIRMWEBREPORTAdvisoryExploitMitigationVendor Advisory
- github.com/facelessuser/pymdown-extensions/commit/63b7835776d703d6c339cf2110d9888f676efc0cX Refsource MISCREPORTFIXPatch
- github.com/facelessuser/pymdown-extensions/releases/tag/10.21.3X Refsource MISCREPORTWEBProductRelease Notes