Pymdown extensions: From 10.0.1 until 10.21.3, pymdownx.snippets uses a string-prefix containment check in
Affects pymdown-extensionsSource GCVE Database
Mentioned vulnerabilities
Not known to be exploited · CVSS 4.3 Medium · fixed in 10.21.3 : update pymdown-extensions when convenient.
Data as of 24 Nov 2026, 20:42 UTC
- Patch
- Available – fixed in 10.21.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 16 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10pymdown-extensionspkg:deb/ubuntu/pymdown-extensions?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSpymdown-extensionspkg:deb/ubuntu/pymdown-extensions?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSpymdown-extensionspkg:deb/ubuntu/pymdown-extensions?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2026-46338 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-46338 (opens in a new tab)
- github.com/facelessuser/pymdown-extensions/commit/63b7835776d703d6c339cf2110d9888f676efc0c (opens in a new tab)
- github.com/facelessuser/pymdown-extensions/releases/tag/10.21.3 (opens in a new tab)
- github.com/facelessuser/pymdown-extensions/security/advisories/GHSA-62q4-447f-wv8h (opens in a new tab)