High

markdownify-mcp path traversal bypasses allowed path restrictions

An attacker invoking the local-file conversion tools, directly or through prompt injection, can bypass the MD_ALLOWED_PATHS and MD_SHARE_DIR restrictions. This lets them read files in sibling directories outside the allowlist by exploiting a path traversal flaw in isWithinDirectory().

Systems
macOSWindowsLinux
Fixed in
1.2.0
CVSS
7.5
Weakness
CWE-22
Source
Get the fix in Telegram

Am I affected?

You are affected if the installed version is older than 1.2.0. Check the version you have and update to 1.2.0 or later. The fixed version is verified against a vendor or advisory source.

Affected software and versions

PackageEcosystemAffectedFixed in
markdownify-mcpother<1.2.01.2.0

A fixed version is shown only when it is verified against a vendor or advisory source.

Who should check

Users of markdownify-mcp on macOS, Windows or Linux running any version before 1.2.0.

Expected outcome after remediation

The agent reports whether markdownify-mcp is installed, which version was found, whether it is older than the fixed version 1.2.0, and whether it was updated to 1.2.0.

Get the fix

FixLane has a reviewed fix procedure for this incident: a read-only check first, then the fix. Ask the Telegram bot, or connect an AI agent to the FixLane MCP server and call get_fix_prompt with incident id 5460 and your operating system.

Related markdownify-mcp incidents

All markdownify-mcp incidents