CVE-2026-140424
8.7high
markdownify-mcp before 1.2.0 Path Allowlist Bypass via isWithinDirectory Prefix Match
- Severity
- 8.7high CVSS:4.0 by VulnCheck
- Published
- Last changed
- Assigned by
- VulnCheck
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| zcaceres markdownify-mcp | before 1.2.0 | CVE List |
All scores
| VulnCheck | 8.7high CVSS:4.0 | 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 |
| VulnCheck | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-140424 changed 2026-12-01 | CVE Terms of Use |
| NVD | CVE-2026-140424 changed 2026-12-01 | Public domain |