
CVE catalog
CVE-2026-46338
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_snipp
- Severity
- Medium · CVSS 4.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.40% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | pymdown-extensions | sid | 11.0.1-1 | fixed |
| Debian | pymdown-extensions | forky | 11.0.1-1 | fixed |
| Debian | pymdown-extensions | trixie | 10.13-1+deb13u1 | vulnerable |
| Debian | pymdown-extensions | bookworm | 9.5-2 | vulnerable |
| Cpe | pymdown-extensions | Not reported | Not reported | vulnerable |
| Cpe | pymdown_extensions | Not reported | 10.21.3 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | pymdown-extensions | source | sid | 11.0.1-1 | not yet assigned | Not reported | Not reported |
| Debian | pymdown-extensions | source | forky | 11.0.1-1 | not yet assigned | Not reported | Not reported |
| Debian | pymdown-extensions | source | trixie | (unfixed) | not yet assigned | Not reported | Not reported |
| Debian | pymdown-extensions | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
| Cpe | pymdown_extensions | cpe | Not reported | 10.21.3 | Not reported | NVD-CVE-2026-46338 | Not reported |
Notes
[trixie] pymdown-extensions: Minor issue [bookworm] pymdown-extensions: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-pymdownx]Affected
Source package: [pymdown-extensions]
Details (2)
9.5-2· all · bookwormAffected
nvd · pymdown-extensions · debian · bookworm; nvd · pymdown-extensions · debian · 12
9.5-2· all · bookwormAffected
nvd · pymdown-extensions · debian · bookworm; nvd · pymdown-extensions · debian · 12
[Debian 13 (Trixie)]
- [python3-pymdownx]Affected
Source package: [pymdown-extensions]
Details (2)
10.13-1+deb13u1· all · trixieAffected
nvd · pymdown-extensions · debian · 13
10.13-1+deb13u1· all · trixieAffected
nvd · pymdown-extensions · debian · 13
Observed:
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://nvd.nist.gov/vuln/detail/CVE-2026-46338]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-46338]
- [https://security-tracker.debian.org/tracker/CVE-2026-46338]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-46338.json]
[Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]