CVE-2026-46338: PyMdown Extensions is a set of extensions for the Python-Markdown markdown project
CVE-2026-46338 is a medium-severity flaw (CVSS 4.3) affecting pymdown extensions. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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. Thi
Why this priority
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 4.3 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 0.4% (top 67%) |
| CISA exploited list | No |
| Weakness | CWE-22 |
| Published | 2026-07-16 |
| Last modified | 2026-10-24 |
Last updated 2026-10-24 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2026-46338?
pymdown extensions: upgrade to 10.21.3. Exact commands for each OS are on this page.
Is CVE-2026-46338 being exploited?
CVE-2026-46338 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2026-46338 affect?
CVE-2026-46338 affects pymdown extensions. Severity is medium (CVSS 4.3). 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 `
How urgent is CVE-2026-46338?
Priority 28/100. Public exploit reference