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

[CVE catalog]

Severity
Medium · CVSS 5.3CVSS: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.

DistributionPackageReleaseVersionStatus
Debianpymdown-extensionssid11.0.1-1fixed
Debianpymdown-extensionsforky11.0.1-1fixed
Debianpymdown-extensionstrixie10.13-1+deb13u1vulnerable
Debianpymdown-extensionsbookworm9.5-2vulnerable
Pippymdown-extensionsNot reported11.0.0fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpymdown-extensionssourcesid11.0.1-1not yet assignedNot reportedNot reported
Debianpymdown-extensionssourceforky11.0.1-1not yet assignedNot reportedNot reported
Debianpymdown-extensionssourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debianpymdown-extensionssourcebookworm(unfixed)not yet assignedNot reportedNot reported
Pippymdown-extensionspipNot reported11.0.0Not reportedNot reportedNot reported

Notes

[trixie] pymdown-extensions: Minor issue [bookworm] pymdown-extensions: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [pymdown-extensions]

    Details (2)
    • 9.5-2 · all · bookworm

      Affected

      nvd · pymdown-extensions · debian · bookworm; nvd · pymdown-extensions · debian · 12

    • 9.5-2 · all · bookworm

      Affected

      nvd · pymdown-extensions · debian · bookworm; nvd · pymdown-extensions · debian · 12

[Debian 13 (Trixie)]

  • Source package: [pymdown-extensions]

    Details (2)
    • 10.13-1+deb13u1 · all · trixie

      Affected

      nvd · pymdown-extensions · debian · 13

    • 10.13-1+deb13u1 · all · trixie

      Affected

      nvd · pymdown-extensions · debian · 13

Observed:

References