Path traversal in facelessuser pymdown-extensions
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- Low · None · None
- Fix status
- Partial Red Hat: 3 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-22 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| facelessuser | pymdown-extensions | 10.0.1 to before 10.21.3 | 10.21.3 | Patch available | CNA |
| — | pymdown-extensions (PyPI) | 10.0.1 to before 10.21.3 | 10.21.3 | Patch available | GHSA-62q4-447f-wv8h |
- pymdown-extensions Vendorfacelessuser Affected 10.0.1 to before 10.21.3 Fixed in 10.21.3 Patch available CNA
- pymdown-extensions (PyPI) Vendor— Affected 10.0.1 to before 10.21.3 Fixed in 10.21.3 Patch available GHSA-62q4-447f-wv8h
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:facelessuser:pymdown_extensions:*:*:*:*:*:*:*:* | 10.0.1 to before 10.21.3 | Vulnerable | facelessuser |
- cpe:2.3:a:facelessuser:pymdown_extensions:*:*:*:*:*:*:*:* Versions 10.0.1 to before 10.21.3 Vulnerable ·facelessuser
Remediation
- Fix · CNA pymdown-extensions (facelessuser) Fixed in 10.21.3
- Fix · GHSA-62q4-447f-wv8h pymdown-extensions (PyPI) Fixed in 10.21.3 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Developer Hub 1 | Affected | No fix yet: Fix deferred |
| Red Hat OpenShift Container Platform 4 | Affected | No fix yet: Fix deferred |
| Self-service automation portal 2 | Affected | No fix yet: Fix deferred |
Not affected: 1 product
- Red Hat Hardened Images
Timeline
- 2026-10-02 Threatist record created from CVE-2026-46338
- 2026-10-03 Alias added: GHSA-62q4-447f-wv8h
- 2026-10-27 Affected versions changed · Red Hat
References
Patch 1
More facelessuser Pymdown Extensions vulnerabilities
- TI-2023-15603 Arbitrary file inclusion with the pymdowm-snippets extension CVSS 3.1HIGH 7.5
- TI-2025-41723 PyMdown Extensions has ReDOS bug in Figure Capture extension CVSS 4.0LOW 2.7
Sources
- CVE-2026-46338 · CVE Program
- CVE-2026-46338 · NVD
- FIRST EPSS
- GHSA-62q4-447f-wv8h · GitHub Advisory Database · CC BY 4.0
- CVE-2026-46338 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences