Skip to content
HighVulnerabilityLLM-specific

CVE-2026-140424: markdownify-mcp path traversal in isWithinDirectory() bypasses allowlist

Identifier
CVE-2026-140424
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.

Summary

markdownify-mcp before 1.2.0 contains a path traversal flaw in isWithinDirectory() that lets attackers bypass the MD_ALLOWED_PATHS and MD_SHARE_DIR restrictions. Attackers can reach it by calling local-file conversion tools directly or through prompt injection, targeting sibling directories that share an allowed prefix to read files outside the allowlist.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.