HighVulnerabilityLLM-specific
CVE-2026-140424: markdownify-mcp path traversal in isWithinDirectory() bypasses allowlist
- Source
- NVD(opens in a new tab)
- Identifier
- CVE-2026-140424
- Published
- Record updated
- 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.
Related items
- MediumARTEX vulnerability: prompt injection to RCE in an AI pentest agent (GHSA-9fqx-7xv3-gj58) | Endor LabsSimilar attack, Endor Labs Blog
- MediumGoogle and Anthropic AI Found an 18-Year-Old UEFI Flaw That Can Bypass Secure BootSimilar attack, The Hacker News
- InfoWhy the Service Desk Must Rethink Identity VerificationSimilar attack, BleepingComputer
- MediumA major step change in AI's offensive cyber capability demands a responseSimilar attack, UK NCSC
- MediumCVE-2026-139894: davila7 claude-code-templates missing authentication in Claude API proxySimilar attack, NVD/CVE Database