Bug 2501448 (CVE-2026-46338) - CVE-2026-46338 pymdown-extensions: PyMdown Extensions: Information disclosure via crafted Markdown snippets
Summary: CVE-2026-46338 pymdown-extensions: PyMdown Extensions: Information disclosure...
Keywords:
Status: NEW
Alias: CVE-2026-46338
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-07-16 19:01 UTC by OSIDB Bzimport
Modified: 2026-07-20 10:54 UTC (History)
15 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-07-16 19:01:28 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.