CVE-2026-46338

Source
https://cve.org/CVERecord?id=CVE-2026-46338
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46338.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-46338
Aliases
Downstream
Related
Published
2026-07-16T18:24:18.155Z
Modified
2026-08-01T03:46:33.437317339Z
Severity
  • 4.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N CVSS Calculator
Summary
PyMdown Extensions: Regression in pymdownx.snippets reintroduces sibling-prefix path traversal bypass despite restrict_base_path
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.getsnippetpath() in pymdownx/snippets.py when restrict_base_path: True, allowing markdown snippet directives to read files from sibling paths that share the same basepath prefix, such as docs and docsinternal. This is a regression of CVE-2023-32309. This issue is fixed in version 10.21.3.

Database specific
{
    "cwe_ids": [
        "CWE-22"
    ],
    "cna_assigner": "GitHub_M",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/46xxx/CVE-2026-46338.json"
}
References

Affected packages

Git / github.com/facelessuser/pymdown-extensions

Affected ranges

Type
GIT
Repo
https://github.com/facelessuser/pymdown-extensions
Events
Database specific
{
    "source": [
        "CPE_RANGE",
        "REFERENCES"
    ],
    "cpe": "cpe:2.3:a:facelessuser:pymdown_extensions:*:*:*:*:*:*:*:*",
    "extracted_events": [
        {
            "introduced": "10.0.1"
        },
        {
            "fixed": "10.21.3"
        }
    ]
}

Affected versions

10.*
10.0.1
10.1.0
10.10
10.10.1
10.10.2
10.11
10.11.1
10.11.2
10.12
10.13
10.14
10.14.1
10.14.2
10.14.3
10.15
10.16
10.16.1
10.17
10.17.1
10.17.2
10.18
10.19
10.19.1
10.2
10.2.1
10.20
10.21
10.21.1
10.21.2
10.3
10.3.1
10.4
10.5
10.6
10.7
10.7.1
10.8
10.8.1
10.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-46338.json"