CVE-2026-46338Facelessuser Pymdown Extensions
Medium 4.3 No auth needed
Follow: this CVE · Facelessuser · Facelessuser Pymdown Extensions We alert you by email or Slack (account required).
- Priority
- 41
- CVSS 3.1
- 4.3
- EPSS
- —
- Auth required
- No
- Published
- Jul 16, 2026
- Updated
- Oct 24, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-22
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Pymdown Extensions.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | pymdown-extensions |
≥ 10.0.1 < 10.21.3 |
10.21.3 |
pip install "pymdown-extensions>=10.21.3" |
| PyPI | pymdown-extensions |
≥ 10.0.1 < 10.21.3 |
10.21.3 |
pip install "pymdown-extensions>=10.21.3" |
Per OSV / GitHub Advisories (GHSA-62q4-447f-wv8h, PYSEC-2026-2999). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| facelessuser | pymdown_extensions | ≥ 10.0.1 < 10.21.3 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Product Release Notes
- github.com Exploit Mitigation Vendor Advisory