{"id":"CVE-2026-140424","summary":"markdownify-mcp before 1.2.0 Path Allowlist Bypass via isWithinDirectory Prefix Match","details":"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.","aliases":["GHSA-wp59-q6fv-34rx"],"modified":"2026-12-01T17:00:10.982320088Z","published":"2026-12-01T15:43:56.535Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140424.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-22"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140424.json"},{"type":"PACKAGE","url":"https://github.com/zcaceres/markdownify-mcp"},{"type":"ARTICLE","url":"https://github.com/zcaceres/markdownify-mcp/blob/v1.1.0/src/utils.ts#L106-L110"},{"type":"FIX","url":"https://github.com/zcaceres/markdownify-mcp/commit/f7bc9752a30cd154a59c4015d74de786cd02a0e9"},{"type":"ADVISORY","url":"https://github.com/zcaceres/markdownify-mcp/releases/tag/v1.2.0"},{"type":"ADVISORY","url":"https://github.com/zcaceres/markdownify-mcp/security/advisories/GHSA-wp59-q6fv-34rx"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-140424"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/markdownify-mcp-before-1.2.0-path-allowlist-bypass-via-iswithindirectory-prefix-match"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/zcaceres/markdownify-mcp","events":[{"introduced":"0"},{"fixed":"333a5af7f13ec3358aecd87c79db413fd06c30f8"},{"fixed":"f7bc9752a30cd154a59c4015d74de786cd02a0e9"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0"},{"fixed":"1.2.0"}],"source":"AFFECTED_FIELD"},{"range":[{"fixed":"f7bc9752a30cd154a59c4015d74de786cd02a0e9"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"333a5af7f13ec3358aecd87c79db413fd06c30f8"}],"source":"REFERENCES_TAG","original_tag":"v1.2.0"}]}}],"versions":["v1.1.0","v1.0.4","v1.0.3","v1.0.2","v1.0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-140424.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"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"}]}