CVE-2026-140424
markdownify-mcp before 1.2.0 Path Allowlist Bypass via isWithinDirectory Prefix Match
- Severity
- high CVSS 8.7 (v4.0)
- Affects
- markdownify-mcp · zcaceres
- Weakness
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- Published
- 1 December 2026 by VulnCheck
markdownify-mcp before 1.2.0 contains a path traversal vulnerability in isWithinDirectory() that allows attackers to bypass MD_ALLOWED_PATHS and MD_SHARE_DIR restrictions. Attackers invoking local-file conversion tools directly or via prompt injection can target sibling directories sharing an allowed prefix to read files outside the allowlist.
Our coverage
We have not written about this one. Know why it matters? Send a tip.