
CVE catalog
CVE-2026-61632
PyMdown Extensions is a set of extensions for the Python-Markdown markdown project. In versions up to and including 10.21.3, the b64 extension is vulnerable to a path traversal that discloses arbitrar
- Severity
- Medium · CVSS 5.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.40% · Oct 25, 2026
PyMdown Extensions is a set of extensions for the Python-Markdown markdown project. In versions up to and including 10.21.3, the b64 extension is vulnerable to a path traversal that discloses arbitrary files: it inlines images referenced by <img src="..."> by joining the src onto the configured base_path with os.path.normpath and opening the result directly, without verifying that the resolved path stays inside base_path. As a result, an src containing ../ sequences or an absolute path reads a file outside base_path as long as it has an allowed image extension (.png, .jpg, .jpeg, .gif, .svg), and the file's contents are then base64-encoded into the rendered output, disclosing them. An application that renders untrusted Markdown with pymdownx.b64 enabled can therefore leak the contents of image-extension files readable by the process to whoever controls the Markdown or views the output, a targeted file-read bounded by the extension check. This issue has been fixed in version 11.0.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | pymdown-extensions | sid | 11.0.1-1 | fixed |
| Debian | pymdown-extensions | forky | 11.0.1-1 | fixed |
| Debian | pymdown-extensions | trixie | 10.13-1+deb13u1 | vulnerable |
| Debian | pymdown-extensions | bookworm | 9.5-2 | vulnerable |
| Pip | pymdown-extensions | Not reported | 11.0.0 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | pymdown-extensions | source | sid | 11.0.1-1 | not yet assigned | Not reported | Not reported |
| Debian | pymdown-extensions | source | forky | 11.0.1-1 | not yet assigned | Not reported | Not reported |
| Debian | pymdown-extensions | source | trixie | (unfixed) | not yet assigned | Not reported | Not reported |
| Debian | pymdown-extensions | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
| Pip | pymdown-extensions | pip | Not reported | 11.0.0 | Not reported | Not reported | Not reported |
Notes
[trixie] pymdown-extensions: Minor issue [bookworm] pymdown-extensions: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [python3-pymdownx]Affected
Source package: [pymdown-extensions]
Details (2)
9.5-2· all · bookwormAffected
nvd · pymdown-extensions · debian · bookworm; nvd · pymdown-extensions · debian · 12
9.5-2· all · bookwormAffected
nvd · pymdown-extensions · debian · bookworm; nvd · pymdown-extensions · debian · 12
[Debian 13 (Trixie)]
- [python3-pymdownx]Affected
Source package: [pymdown-extensions]
Details (2)
10.13-1+deb13u1· all · trixieAffected
nvd · pymdown-extensions · debian · 13
10.13-1+deb13u1· all · trixieAffected
nvd · pymdown-extensions · debian · 13
Observed:
References
- [https://github.com/advisories/GHSA-9xwg-3r6f-jcx2]
- [https://github.com/facelessuser/pymdown-extensions/releases/tag/11.0]
- [https://github.com/facelessuser/pymdown-extensions/security/advisories/GHSA-9xwg-3r6f-jcx2]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-61632]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-61632]
- [https://security-tracker.debian.org/tracker/CVE-2026-61632]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-61632.json]
[Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]