CVE-2026-140424 — zcaceres markdownify-mcp
Summary
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.
Severity breakdown
High · 8.7
An attacker without an account can exploit this over the network, without any user action.
- Attack from
- the network (remotely)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- Login needed
- no
- User action needed
- no
- Impact
- high on confidentiality, none on integrity and availability
- Impact on other systems
- none
Weakness
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| zcaceres markdownify-mcp | < 1.2.0 | 1.2.0 |
References by type
Vendor advisories
Patches and fixed releases
- github.com/zcaceres/markdownify-mcp/commit/f7bc9752a30cd154a59c4015d74d…
- github.com/zcaceres/markdownify-mcp/releases/tag/v1.2.0
Other references
Affected
- zcaceres markdownify-mcp
What to do
- Check whether you run an affected product or version and apply the vendor's update or mitigation.
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-140424?
markdownify-mcp before 1.2.0 contains a path traversal vulnerability in isWithinDirectory() that allows attackers to bypass MDALLOWEDPATHS and MDSHAREDIR 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. Weakness type: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (CWE-22).
How severe is CVE-2026-140424?
CVE-2026-140424 has a CVSS 4.0 base score of 8.7 (high), from the CNA (vulncheck.com). An attacker without an account can exploit this over the network, without any user action.
Is CVE-2026-140424 being exploited?
Not as far as is known: CVE-2026-140424 is not in CISA's Known Exploited Vulnerabilities catalog as of December 2, 2026.
Which versions are affected by CVE-2026-140424?
zcaceres markdownify-mcp < 1.2.0 (fixed in 1.2.0).
How do I fix CVE-2026-140424?
Update to a fixed release: zcaceres markdownify-mcp 1.2.0.