CVE-2026-140424
Markdownify file allowlist could accept sibling paths and symlinks
zcaceres · markdownify-mcp / mcp-markdownify-server
First documented disclosure · Review checkpoint
Summary
The MCP file conversion and retrieval boundary could be bypassed despite configured allowed directories.
Severity and exploitation evidence
High · 8.7/10 · CVSS 4.0. Severity source.
Exploitation not established: The reviewed public originals establish a vulnerability or controlled demonstration, not malicious exploitation against users. No exploit, package, model or external proof of concept was executed in this review.
Technical severity is not a measure of observed attacks or of risk to your deployment. Attempts, demonstrations, and successful compromise retain the qualifications in the source.
How the weakness works
A string-prefix directory test accepts sibling names sharing the allowed prefix; missing canonical symlink checks and inconsistent expansion of retrieval paths further weaken confinement.
Conditions required
An attacker can influence a file path supplied to the MCP tools, and the process can read a file outside the configured MD_ALLOWED_PATHS or MD_SHARE_DIR boundary.
Potential impact
Read or convert files reachable by the MCP process outside the intended allowed directory.
Affected versions and configurations
Versions before 1.2.0 according to the CNA; the maintainer advisory identifies through 1.1.0.
Fix and mitigation status
1.2.0. The merged PR104 correction uses separator-aware containment, canonical paths and consistent validated read paths.
Practical next steps
Upgrade to 1.2.0 or a later supported release containing the correction; grant the MCP process access only to needed files.
Operating lesson
Directory confinement must validate the canonical path actually opened.
Evidence and limits
PR99 publicly describes the prefix and file-confinement problem on May 1; that earlier proposal was closed without merge. PR104 merged November 25 and the advisory was published November 25. The earlier private report date mentioned by the advisory is not used as public disclosure. This is distinct from the existing URL-fetch SSRF record even though both share release 1.2.0. The displayed CVSS 4.0 8.7 is the VulnCheck CNA assessment.
Sources
- VulnCheck CVE authority record
Primary source ·
- Earlier public boundary report
Primary source ·
- Merged path-confinement correction
Primary source ·
- Maintainer security advisory
Primary source ·
- Fixed release
Primary source ·