CVE-2026-140424
HIGH 8.7CVSS 4.0markdownify-mcp before 1.2.0 Path Allowlist Bypass via isWithinDirectory Prefix Match
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.
- Published
- 1 Dec 2026
- Last modified
- 1 Dec 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Received
- Weakness
- CWE-22
- Sources
- NVDJSONCVE ListJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | HIGH 8.7 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| CVE List | VulnCheck | CVSS 4.0 | HIGH 8.7 | 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 |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| CVE List | VulnCheck | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| CVE List | CISA-ADP | SSVC | Exploitation: none; Automatable: yes; Technical Impact: partial |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| CVE List | zcaceres | markdownify-mcp | < 1.2.0 | 1.2.0 |
References
- https://github.com/zcaceres/markdownify-mcp/blob/v1.1.0/src/utils.ts#L106-L110 · technical-description
- https://github.com/zcaceres/markdownify-mcp/commit/f7bc9752a30cd154a59c4015d74de786cd02a0e9 · patch
- https://github.com/zcaceres/markdownify-mcp/releases/tag/v1.2.0 · release-notes
- https://github.com/zcaceres/markdownify-mcp/security/advisories/GHSA-wp59-q6fv-34rx · vendor-advisory
- https://www.vulncheck.com/advisories/markdownify-mcp-before-1.2.0-path-allowlist-bypass-via-iswithindirectory-prefix-match · third-party-advisory
History
- 1 Dec 2026 23:34 UTC · NVD: updated (other details)
- 1 Dec 2026 22:45 UTC · CVE List: updated (other details)
- 1 Dec 2026 16:27 UTC · NVD: first stored (published 1 Dec 2026)
- 1 Dec 2026 15:55 UTC · CVE List: first stored (published 1 Dec 2026)