Path traversal in markdownify-mcp lets attackers read files outside allowlist
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-22 and the CVSS impact.
Summary
markdownify-mcp before 1.2.0 contains a path traversal flaw in its isWithinDirectory() check, which is supposed to keep file access inside allowed directories. The check uses a prefix match, so sibling directories that share an allowed prefix pass it, and an attacker can read files outside the MD_ALLOWED_PATHS and MD_SHARE_DIR restrictions. An attacker who can call the local-file conversion tools, directly or through prompt injection, can read such files without authentication.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Update markdownify-mcp to version 1.2.0, which fixes the flaw. The sources list no advisory identifier for this fix.
Written with Claude Haiku 5.5 from the sources below · 2026-12-01
- Fix · CNA markdownify-mcp (zcaceres) Fixed in 1.2.0
Timeline
- 2026-12-01 Threatist record created from CVE-2026-140424
- 2026-12-01 Alias added: GHSA-6wvg-2gwh-7j53
- 2026-12-01 CISA SSVC decision points changed
References
More zcaceres vulnerabilities
- TI-2025-40381 fetch-mcp v1.0.2 and before is vulnerable to Server-Side Request Forgery (SSRF)… CVSS 3.1HIGH 7.5
- TI-2025-40380 A Server-Side Request Forgery (SSRF) vulnerability was discovered in the… CVSS 3.1HIGH 7.5
- TI-2025-36147 Markdownify is vulnerable to command injection through pptx-to-markdown tool CVSS 3.1HIGH 7.5
- TI-2026-12394 zcaceres markdownify-mcp webpage-to-markdown Markdownify.ts saveToTempFile random values CVSS 4.0LOW 2.0
- TI-2026-98594 Server-side request forgery in markdownify-mcp validateUrl bypass CVSS 4.0HIGH 8.3
- TI-2026-12391 zcaceres markdownify-mcp Markdownify.ts assertPathAllowed symlink CVSS 4.0MEDIUM 4.8
Sources
- CVE-2026-140424 · CVE Program
- CVE-2026-140424 · NVD
- GHSA-6wvg-2gwh-7j53 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences