Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-61632: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in facelessuser pymdown-extensions

0
Medium
VulnerabilityCVE-2026-61632cvecve-2026-61632cwe-22
Published: 08/06/2026 (08/06/2026, 20:59:20 UTC)
Source: CVE Database V5
Vendor/Project: facelessuser
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected software

pymdown-extensions
pkg:pypi/pymdown-extensions
Affected versions
<=10.21.3

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/06/2026, 22:57:43 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses