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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| facelessuser | pymdown-extensions | >= 10.0.1, < 10.21.3 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | pymdown-extensions | 11.0.1-1 | — |
| Debian 13 | pymdown-extensions | No fix yet | — |
| Debian 12 | pymdown-extensions | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | pymdown-extensions | No fix yet | — |
| Ubuntu 26.04 LTS | pymdown-extensions | No fix yet | — |
| Ubuntu 24.04 LTS | pymdown-extensions | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | open-webui | 0.9.6-r1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | pymdown-extensions | >= 10.0.1, < 10.21.3 | 10.21.3 | GHSA-62q4-447f-wv8h |