{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:facelessuser:pymdown_extensions:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "10.0.1"
              },
              {
                "fixed": "10.21.3"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "7c13bda5b7793b172efd1abb6712e156a83fe07d"
            },
            {
              "fixed": "42628414c6591b1a1ce211157090783e3b2242d6"
            },
            {
              "fixed": "63b7835776d703d6c339cf2110d9888f676efc0c"
            }
          ],
          "repo": "https://github.com/facelessuser/pymdown-extensions",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-62q4-447f-wv8h"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-22"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46338.json"
  },
  "details": "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.",
  "id": "CVE-2026-46338",
  "modified": "2026-08-01T03:32:45.405701870Z",
  "published": "2026-07-16T18:24:18.155Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/facelessuser/pymdown-extensions/releases/tag/10.21.3"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46338.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/facelessuser/pymdown-extensions/security/advisories/GHSA-62q4-447f-wv8h"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-46338"
    },
    {
      "type": "FIX",
      "url": "https://github.com/facelessuser/pymdown-extensions/commit/63b7835776d703d6c339cf2110d9888f676efc0c"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "PyMdown Extensions: Regression in pymdownx.snippets reintroduces sibling-prefix path traversal bypass despite restrict_base_path"
}