P2 · HighCVSS 7.5EPSS 0.9%
markdownify-mcp before 1.2.0 Path Allowlist Bypass via isWithinDirectory Prefix Match
- CVE-2026-140424
- GHSA-6wvg-2gwh-7j53
- EUVD-2026-140347
Description
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.
Text from the CVE.org record.
Recommendation
zcaceres markdownify-mcp
- If you run a version before 1.2.0update to 1.2.0 or later
Taken from the version ranges of the CVE.org record. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
zcaceres markdownify-mcp
Affected versions Fixed in before 1.2.0 1.2.0
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.