PatchSiren cyber security CVE debrief
CVE-2026-46338 facelessuser CVE debrief
CVE-2026-46338 is a vulnerability in PyMdown Extensions, a set of extensions for the Python-Markdown markdown project. The issue, fixed in version 10.21.3, allows markdown snippet directives to read files from sibling paths with the same base_path prefix when `restrict_base_path: True`. This is a regression of CVE-2023-32309. Affected users should review and restrict base paths for markdown snippet directives and monitor for suspicious file access patterns.
- Vendor
- facelessuser
- Product
- pymdown-extensions
- CVSS
- MEDIUM 4.3
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-07-16
- Original CVE updated
- 2026-07-16
- Advisory published
- 2026-07-16
- Advisory updated
- 2026-07-16
Who should care
Users of PyMdown Extensions, particularly those using versions between 10.0.1 and 10.21.3, should be aware of this vulnerability and take steps to mitigate it. This includes reviewing and restricting base paths for markdown snippet directives, monitoring for suspicious file access patterns, and updating to version 10.21.3 or later.
Technical summary
The vulnerability exists in the SnippetPreprocessor.get_snippet_path() function in pymdownx/snippets.py. When `restrict_base_path: True`, the function uses a string-prefix containment check, allowing access to files in sibling paths with the same base_path prefix. This could potentially lead to unauthorized file reads. Users should update PyMdown Extensions to version 10.21.3 or later and review their configurations.
Defensive priority
Medium priority due to the CVSS score of 4.3 and the potential for unauthorized file reads.
Recommended defensive actions
- Update PyMdown Extensions to version 10.21.3 or later
- Review and restrict base paths for markdown snippet directives
- Monitor for suspicious file access patterns
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
Evidence notes
The CVE record was published on 2026-07-16T19:16:45.733Z and has not been modified since then. The NVD entry is currently 4.3 (Medium). Evidence is limited to public sources and may not reflect the full scope or impact of the vulnerability. Defenders should verify affected systems and review official advisories for specific guidance.
Official resources
AI-assisted PatchSiren debrief based on the supplied source corpus. The CVE record was published on 2026-07-16T19:16:45.733Z and has not been modified since then.