CVE-2026-46338
Last modified
CVE-2026-46338 is a medium-severity vulnerability rated 4.3/10 on the CVSS scale. 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. EPSS estimates a 0.26% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Facelessuser | Pymdown Extensions | >= 10.0.1, < 10.21.3 |
References
- https://github.com/facelessuser/pymdown-extensions/releases/tag/10.21.3Product, Release Notes
- https://github.com/facelessuser/pymdown-extensions/security/advisories/GHSA-62q4-447f-wv8hExploit, Mitigation, Vendor Advisory
- https://github.com/facelessuser/pymdown-extensions/security/advisories/GHSA-62q4-447f-wv8hExploit, Mitigation, Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-46338?
How severe is CVE-2026-46338?
How do I fix CVE-2026-46338?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-46331In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-46332In the Linux kernel, the following vulnerability has been re…8
- CVE-2026-46333In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2026-46334OpenSIPS is a Session Initiation Protocol (SIP) server imple…8.7
- CVE-2026-46336Manyfold is an open source, self-hosted web application for …7.1
- CVE-2026-46337WWBN AVideo is an open source video platform. In 29.0 and ea…5.3
- CVE-2026-463399Router is an AI router & token saver. From 0.4.30 until 0.4…10
- CVE-2026-4634A flaw was found in Keycloak. An unauthenticated attacker ca…7.5
- CVE-2026-46340Netty is a network application framework for development of …7.5
- CVE-2026-46341The Apify MCP server enables AI agents to extract data from …6.1
- CVE-2026-46342Nuxt is an open-source web development framework for Vue.js.…5.4
- CVE-2026-46344liboqs is a C-language cryptographic library that provides i…5.3
Are you affected by CVE-2026-46338?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
