Read the docs

Path traversal in markdownify-mcp lets attackers read files outside allowlist

Priority MEDIUM 41CWE-22Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
Fix Fixed markdownify-mcp (zcaceres): 1.2.0

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

VendorProductAffected versionsFixed inStatusSource
zcaceresmarkdownify-mcpbefore 1.2.01.2.0Patch availableCNA
  • markdownify-mcp Vendorzcaceres Affected before 1.2.0 Fixed in 1.2.0 Patch available CNA

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

  1. 2026-12-01 Threatist record created from CVE-2026-140424
  2. 2026-12-01 Alias added: GHSA-6wvg-2gwh-7j53
  3. 2026-12-01 CISA SSVC decision points changed

References

  • 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