CVE-2026-140424
published high CVSS 4.0 · 8.7markdownify-mcp before 1.2.0 Path Allowlist Bypass via isWithinDirectory Prefix Match
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| zcaceres | — | markdownify-mcp0 to < 1.2.0 · Other versions: unaffected | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.5 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| zcaceres | markdownify-mcp | 0 to < 1.2.0 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
5- https://github.com/zcaceres/markdownify-mcp/blob/v1.1.0/src/utils.ts#L106-L110
- https://github.com/zcaceres/markdownify-mcp/commit/f7bc9752a30cd154a59c4015d74de786cd02a0e9
- markdownify-mcp v1.2.0 Release Notes https://github.com/zcaceres/markdownify-mcp/releases/tag/v1.2.0
- GitHub Security Advisory (GHSA-wp59-q6fv-34rx) https://github.com/zcaceres/markdownify-mcp/security/advisories/GHSA-wp59-q6fv-34rx
- VulnCheck Advisory: markdownify-mcp before 1.2.0 Path Allowlist Bypass via isWithinDirectory Prefix Match https://www.vulncheck.com/advisories/markdownify-mcp-before-1.2.0-path-allowlist-bypass-via-iswithindirectory-prefix-match
Provider assertions
1VulnCheck · cna
markdownify-mcp before 1.2.0 Path Allowlist Bypass via isWithinDirectory Prefix Match
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- da485f2bd9fdf664e8b56eaa9f1a779f0c502e234727f9aa99ecec96a8f1b67d
- Ingested
- 01 Dec 2026, 15:53:23 UTC
- Source record
- Official CVE record