AI Stack Alert High CVE-2026-140424 For CISO, SOC / IR, AppSec, AI Eng AI-assisted
CVE-2026-140424: markdownify-mcp before 1.2.0 path traversal bypasses MD_ALLOWED_PATHS allowlist
markdownify-mcp versions before 1.2.0 contain a path traversal flaw in isWithinDirectory(). The flaw lets attackers bypass the MD_ALLOWED_PATHS and MD_SHARE_DIR restrictions. Attackers can read files outside the allowlist by targeting sibling directories that share an allowed prefix.
Why it matters
Any deployment exposing markdownify-mcp's local-file conversion tools can have files outside the intended allowlist read by an attacker, including through prompt injection against an AI agent. The CVSS base score is 8.7.
Do this
- Upgrade markdownify-mcp to version 1.2.0 or later.
- Until patched, restrict the server's filesystem access at the OS or container level to only the intended directories.
- Audit MCP client configurations to identify where markdownify-mcp is deployed and which agents can invoke its local-file conversion tools.
- Review server logs for conversion requests referencing paths outside MD_ALLOWED_PATHS and MD_SHARE_DIR.
Exploit Clock
No signals yet
- No exploitation signals yet
Signals
- NoCISA KEV
- 8.7CVSS
- NoPublic PoC
- 36/100Priority
- 80%Confidence
Evidence
“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.”
Sources
Affected / related
markdownify-mcp, markdownify-mcp
Published 2026-12-01 16:18 UTC · updated 2026-12-01 18:35 UTC · AI-assisted summary, checked against quoted sources · How we score