CVE catalog

CVE-2026-46338

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_snipp

[CVE catalog]

Severity
Medium · CVSS 4.3CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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. 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.

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
Cpepymdown-extensionsNot reportedNot reportedvulnerable
Cpepymdown_extensionsNot reported10.21.3fixed

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
Cpepymdown_extensionscpeNot reported10.21.3Not reportedNVD-CVE-2026-46338Not 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