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().
1.2.0Am 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
| Package | Ecosystem | Affected | Fixed in |
|---|---|---|---|
markdownify-mcp | other | <1.2.0 | 1.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.