markdownify-mcp path allowlist bypass through sibling-directory prefix match (CVE-2026-140424)
Summary
markdownify-mcp before 1.2.0 checked allowed paths with a prefix match in isWithinDirectory(). This let local-file conversion tools read files in sibling directories that share an allowed prefix. The GitHub advisory scores it CVSS 3.1 7.5 and VulnCheck lists CVSS 4.0 8.7. Version 1.2.0 fixes it.
Severity
Timeline
GitHub advisory GHSA-wp59-q6fv-34rx published, with the fix in version 1.2.0
Advisory GHSA-6wvg-2gwh-7j53 for CVE-2026-140424 published
How it happened
The advisories describe operators who configured the allowed-paths or share-directory option to confine local file reads. In those setups, isWithinDirectory() used a plain prefix match. A path such as a sibling directory sharing the allowed prefix therefore passed the check. Attackers could invoke the local-file conversion tools directly or through prompt injection. The CVSS vector lists high confidentiality impact and no integrity or availability impact. The GitHub advisory for the package also describes two related defects: missing symlink resolution and a tilde path mismatch in Markdownify.get(). Version 1.2.0 addresses both.
How to check your app
- before 1.2.0: Check the installed markdownify-mcp version. Versions before 1.2.0 are affected.
- before 1.2.0: Check whether the server is configured with the option that restricts local file reads to allowed paths or a share directory. The bypass concerns those restrictions.
Sources
Corrections and updates
Cite this entry
- Title
- markdownify-mcp path allowlist bypass through sibling-directory prefix match (CVE-2026-140424)
- Added
- Dec 1, 2026
- URL
- https://vibeincidents.com/incidents/markdownify-mcp-cve-2026-140424/
- Suggested citation
VibeIncidents. "markdownify-mcp path allowlist bypass through sibling-directory prefix match (CVE-2026-140424)." Dec 1, 2026. https://vibeincidents.com/incidents/markdownify-mcp-cve-2026-140424/