CVE-2026-46338

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.

Severity
MEDIUM
CVSS v3
4.3
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N · source cna
Exploit chance (EPSS)
0.398%
chance of exploitation in the next 30 days
higher than 34.5% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0

Weakness

CISA SSVC decision points

Exploitationpoc
Automatableno
Technical impactpartial
Scored2026-07-17

Timeline

  1. 2026-05-19GitHub advisory published (GHSA-62q4-447f-wv8h)58 days before publication
  2. 2026-07-16Published by the CNA18:24 UTC
  3. 2026-07-17CISA SSVC decision recorded1 day after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-62q4-447f-wv8h, affected packages:

PackageVulnerable versionsFixed in
PyPI pymdown-extensionsfrom 10.0.1 before 10.21.310.21.3

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
facelessuser pymdown_extensionsfrom 10.0.1 before 10.21.3fixed in 10.21.310.21.3

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources