Skip to main content
CVE-2026-46338VulnerabilityPublished Updated

Pymdown extensions: From 10.0.1 until 10.21.3, pymdownx.snippets uses a string-prefix containment check in

Affects pymdown-extensionsSource GCVE Database

0
Compare

Mentioned vulnerabilities

Authoritative record:CVE-2026-46338· Medium 4.3

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

CVSS 3.1 base score
4.3Medium
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 16 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Ubuntu 26.10pymdown-extensionspkg:deb/ubuntu/pymdown-extensions?arch=source&distro=stonkingOther threatsAffected
  • =10.19.1-3
  • =11.0.1-1
Fixed in–
Ubuntu 26.04 LTSpymdown-extensionspkg:deb/ubuntu/pymdown-extensions?arch=source&distro=resoluteOther threatsAffected
  • =10.13-3
  • =10.13-4
  • =10.19.1-3
Fixed in–
Ubuntu 24.04 LTSpymdown-extensionspkg:deb/ubuntu/pymdown-extensions?arch=source&distro=nobleOther threatsAffected
  • =9.5-2
  • =9.5-4
  • =9.5-5
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

Community reviews

Loading reviews…