CVE-2026-61632: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in facelessuser pymdown-extensions
PyMdown Extensions versions up to and including 10.21.3 contain a path traversal vulnerability in the b64 extension. This flaw allows an attacker controlling Markdown input to cause the extension to read and disclose arbitrary files with certain image extensions outside the intended base directory. The vulnerability is fixed in version 11.0.
AI Analysis
Technical Summary
The b64 extension in PyMdown Extensions (up to and including version 10.21.3) improperly limits pathname resolution when inlining images referenced by <img src="..."> tags. It joins the src attribute onto a configured base_path using os.path.normpath but does not verify that the resolved path remains within base_path. This allows path traversal via '../' sequences or absolute paths to read files outside the base_path if they have allowed image extensions (.png, .jpg, .jpeg, .gif, .svg). The contents of these files are base64-encoded and included in the rendered Markdown output, potentially leaking sensitive file contents to anyone controlling the Markdown or viewing the output. This vulnerability is identified as CWE-22 and has a CVSS 3.1 score of 5.3 (medium severity). It is fixed in version 11.0.
Potential Impact
An attacker who can supply Markdown content rendered with pymdownx.b64 enabled can read arbitrary files with allowed image extensions accessible to the process outside the intended base_path. This leads to information disclosure of file contents via base64 encoding in the rendered output. There is no impact on integrity or availability reported.
Mitigation Recommendations
Upgrade PyMdown Extensions to version 11.0 or later where this path traversal vulnerability is fixed. Until then, avoid rendering untrusted Markdown with the pymdownx.b64 extension enabled. No official patch link or advisory is provided in the source data, so verify vendor advisories for confirmation.
CVE-2026-61632: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in facelessuser pymdown-extensions
Description
PyMdown Extensions versions up to and including 10.21.3 contain a path traversal vulnerability in the b64 extension. This flaw allows an attacker controlling Markdown input to cause the extension to read and disclose arbitrary files with certain image extensions outside the intended base directory. The vulnerability is fixed in version 11.0.
CVSS v3.1
Score 5.3medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The b64 extension in PyMdown Extensions (up to and including version 10.21.3) improperly limits pathname resolution when inlining images referenced by <img src="..."> tags. It joins the src attribute onto a configured base_path using os.path.normpath but does not verify that the resolved path remains within base_path. This allows path traversal via '../' sequences or absolute paths to read files outside the base_path if they have allowed image extensions (.png, .jpg, .jpeg, .gif, .svg). The contents of these files are base64-encoded and included in the rendered Markdown output, potentially leaking sensitive file contents to anyone controlling the Markdown or viewing the output. This vulnerability is identified as CWE-22 and has a CVSS 3.1 score of 5.3 (medium severity). It is fixed in version 11.0.
Potential Impact
An attacker who can supply Markdown content rendered with pymdownx.b64 enabled can read arbitrary files with allowed image extensions accessible to the process outside the intended base_path. This leads to information disclosure of file contents via base64 encoding in the rendered output. There is no impact on integrity or availability reported.
Mitigation Recommendations
Upgrade PyMdown Extensions to version 11.0 or later where this path traversal vulnerability is fixed. Until then, avoid rendering untrusted Markdown with the pymdownx.b64 extension enabled. No official patch link or advisory is provided in the source data, so verify vendor advisories for confirmation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-10T17:38:57.111Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a750707bf8831d5395f5abb
Added to database: 08/06/2026, 22:13:27 UTC
Last enriched: 08/06/2026, 22:57:43 UTC
Last updated: 08/06/2026, 23:21:10 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.