CVE-2026-140424 PUBLISHED

markdownify-mcp before 1.2.0 Path Allowlist Bypass via isWithinDirectory Prefix Match

Assigner: VulnCheck
Reserved: 01.12.2026 Published: 01.12.2026 Updated: 01.12.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
CVSS Score: 8.7

Product Status

Vendor zcaceres
Product markdownify-mcp
Versions Default: unaffected
  • affected from 0 to 1.2.0 (excl.)

Credits

  • Genius Wallaby finder

References

Problem Types

  • Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') CWE