CVE-2026-46338 PyMdown Extensions: Regression in pymdownx.snippets reintroduces sibling-prefix path traversal bypass despite restrict_base_path
MediumCVSS 4.3
EPSS 0.40%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
12 packages: 3 fixed, 8 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/pymdown-extensions(Debian 12) | = 9.5-2; = 9.5-3; = 9.5-4; = 9.5-5 +11 more | No fix listed | No fix yet |
| debian/pymdown-extensions(Debian 13) | = 10.13-1; = 10.13-1+deb13u1; = 10.13-2; = 10.13-3 +5 more | No fix listed | No fix yet |
| redhat/ansible-automation-platform/bootc-automation-portal-rhel9(Red Hat ansible_portal 2) | All versions | No fix listed | No fix yet |
| redhat/openshift4/ose-olm-catalogd-rhel9(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/rhdh/rhdh-hub-rhel9(Red Hat rhdh 1) | All versions | No fix listed | No fix yet |
| ubuntu/pymdown-extensions(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/pymdown-extensions(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/pymdown-extensions(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/pymdown-extensions(Debian 14) | < 11.0.1-1; = 10.13-1; = 10.13-2; = 10.13-3 +3 more | 11.0.1-1 | Fixed |
| facelessuser pymdown extensions | >= 10.0.1, < 10.21.3 | 10.21.3 | Fixed |
| pypi pymdown-extensions(PyPI) | = 10.0.1; = 10.1; = 10.2; = 10.2.1 +37 more | 10.21.3 | Fixed |
| facelessuser pymdown-extensions | = >= 10.0.1, < 10.21.3 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi pymdown-extensions(PyPI) | >= 10.0.1, < 10.21.3 | 10.21.3 |
| pypi pymdown-extensions(PyPI) | = 10.0.1 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.1 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.10 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.10.1 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.10.2 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.11 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.11.1 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.11.2 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.12 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.13 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.14 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.14.1 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.14.2 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.14.3 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.15 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.16 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.16.1 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.17 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.17.1 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.17.2 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.18 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.19 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.19.1 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.2 | No fix listed |
Show 55 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi pymdown-extensions(PyPI) | = 10.2.1 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.20 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.20.1 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.21 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.21.2 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.3 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.3.1 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.4 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.5 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.6 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.7 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.7.1 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.8 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.8.1 | No fix listed |
| pypi pymdown-extensions(PyPI) | = 10.9 | No fix listed |
| facelessuser pymdown-extensions | = >= 10.0.1, < 10.21.3 | No fix listed |
| redhat/rhdh/rhdh-hub-rhel9(Red Hat:rhdh:1) | All versions | No fix listed |
| redhat/openshift4/ose-olm-catalogd-rhel9(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/ansible-automation-platform/bootc-automation-portal-rhel9(Red Hat:ansible_portal:2) | All versions | No fix listed |
| pypi pymdown-extensions(PyPI) | >= 10.0.1, <= 10.21.2 | No fix listed |
| debian/pymdown-extensions(Debian:12) | All versions | No fix listed |
| debian/pymdown-extensions(Debian:12) | = 10.11.2-1 | No fix listed |
| debian/pymdown-extensions(Debian:12) | = 10.13-1 | No fix listed |
| debian/pymdown-extensions(Debian:12) | = 10.13-2 | No fix listed |
| debian/pymdown-extensions(Debian:12) | = 10.13-3 | No fix listed |
| debian/pymdown-extensions(Debian:12) | = 10.13-4 | No fix listed |
| debian/pymdown-extensions(Debian:12) | = 10.19.1-1 | No fix listed |
| debian/pymdown-extensions(Debian:12) | = 10.19.1-3 | No fix listed |
| debian/pymdown-extensions(Debian:12) | = 10.8.1-1 | No fix listed |
| debian/pymdown-extensions(Debian:12) | = 10.9-1 | No fix listed |
| debian/pymdown-extensions(Debian:12) | = 11.0.1-1 | No fix listed |
| debian/pymdown-extensions(Debian:12) | = 9.5-2 | No fix listed |
| debian/pymdown-extensions(Debian:12) | = 9.5-3 | No fix listed |
| debian/pymdown-extensions(Debian:12) | = 9.5-4 | No fix listed |
| debian/pymdown-extensions(Debian:12) | = 9.5-5 | No fix listed |
| debian/pymdown-extensions(Debian:13) | All versions | No fix listed |
| debian/pymdown-extensions(Debian:13) | = 10.13-1 | No fix listed |
| debian/pymdown-extensions(Debian:13) | = 10.13-1+deb13u1 | No fix listed |
| debian/pymdown-extensions(Debian:13) | = 10.13-2 | No fix listed |
| debian/pymdown-extensions(Debian:13) | = 10.13-3 | No fix listed |
| debian/pymdown-extensions(Debian:13) | = 10.13-4 | No fix listed |
| debian/pymdown-extensions(Debian:13) | = 10.19.1-1 | No fix listed |
| debian/pymdown-extensions(Debian:13) | = 10.19.1-3 | No fix listed |
| debian/pymdown-extensions(Debian:13) | = 11.0.1-1 | No fix listed |
| debian/pymdown-extensions(Debian:14) | < 11.0.1-1 | 11.0.1-1 |
| debian/pymdown-extensions(Debian:14) | = 10.13-1 | No fix listed |
| debian/pymdown-extensions(Debian:14) | = 10.13-2 | No fix listed |
| debian/pymdown-extensions(Debian:14) | = 10.13-3 | No fix listed |
| debian/pymdown-extensions(Debian:14) | = 10.13-4 | No fix listed |
| debian/pymdown-extensions(Debian:14) | = 10.19.1-1 | No fix listed |
| debian/pymdown-extensions(Debian:14) | = 10.19.1-3 | No fix listed |
| ubuntu/pymdown-extensions(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/pymdown-extensions(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/pymdown-extensions(Ubuntu:26.10) | All versions | No fix listed |
| facelessuser pymdown extensions | >= 10.0.1, < 10.21.3 | 10.21.3 |
References
- https://github.com/facelessuser/pymdown-extensions/security/advisories/GHSA-62q4-447f-wv8h exploit mitigation vendor-advisory
- github.com patch
- github.com product
- pypi.org product
- github.com vendor-advisory
- nvd.nist.gov vendor-advisory
- https://github.com/facelessuser/pymdown-extensions/commit/63b7835776d703d6c339cf2110d9888f676efc0c patch
- https://github.com/facelessuser/pymdown-extensions/releases/tag/10.21.3 product release-notes
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2501448 issue-tracking
- www.cve.org
- Debian Security Tracker CVE-2026-46338 vendor-advisory
- Ubuntu CVE tracker vendor-advisory