Skip to main content
Public proof of conceptFix available

CVE-2026-46338

A public proof of concept exists; no exploitation attested.

  • Published2026-07-16
  • Fixed in10.21.3
  • WeaknessCWE-22

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2026-07-1619:16CVE publishedNVD

Versions per branch

NVD · OSV
Facelessuser pymdown extensions
BranchAffectedFixed in
10.x≥ 10.0.1, < 10.21.310.21.3

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • facelessuser pymdown-extensions
    Affected
    • = >= 10.0.1, < 10.21.3no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2026-07-16

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • open-webuiWolfiall versions · fixed in 0.9.6-r1
  • open-webuiChainguardall versions · fixed in 0.9.6-r1
  • pymdown-extensionsUbuntu:26.10all versions · no fixed version listed
  • pymdown-extensionsUbuntu:26.04:LTSall versions · no fixed version listed
  • pymdown-extensionsUbuntu:24.04:LTSall versions · no fixed version listed
  • pymdown-extensionsRoot:PyPIall versions · fixed in 10.21.2+aikido.2
  • pymdown-extensionsRoot:PyPIall versions · fixed in 10.21.2+aikido.1
  • pymdown-extensionsDebian:14all versions · fixed in 11.0.1-1

5 more package ranges on OSV.dev

Vendor advisories

  • CVE-2026-46338 Red Hat Product Security3 known affected

    pymdown-extensions: PyMdown Extensions: Information disclosure via crafted Markdown snippets

    rhdh/rhdh-hub-rhel9 as a component of Red Hat Developer Hub 1 · openshift4/ose-olm-catalogd-rhel9 as a component of Red Hat OpenShift Container Platform 4 · ansible-automation-platform/bootc-automation-portal-rhel9 as a component of Self-service automation portal 2

Full record on NVD

Fix

  1. Update Facelessuser pymdown extensions to 10.21.3
  2. Workaround from the vendor Red Hat Product Security CVE-2026-46338 · 3 productsEnsure that untrusted Markdown content is not processed by the pymdownx.snippets extension. If the snippets feature is not required, it can be disabled in the MkDocs or Python-Markdown configuration.
  3. No fix available, says the vendor Red Hat Product Security CVE-2026-46338 · 3 productsFix deferred

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • NVDCVE recordread 2026-10-25
  • CISA-ADPSSVC decisionpoc2026-07-17
  • CNACVSS 3.14.3known since 2026-10-25
  • CNAweakness (CWE)CWE-22known since 2026-10-25
  • FIRST EPSSEPSS score0.3 %2026-12-04
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryModerate2026-05-19

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Published
2026-07-16
Last modified
2026-10-24
NVD status
Analyzed
GitHub advisory
GHSA-62q4-447f-wv8h

Frequently asked questions

What is 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_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.

Is CVE-2026-46338 actively exploited?

A proof-of-concept exploit exists for CVE-2026-46338, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2026-46338?

CVE-2026-46338 has a CVSS v3 base score of 4.3 (Medium severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N.

Running pymdown-extensions? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record