{"id":"CVE-2026-140424","aliases":["EUVD-2026-140347","GHSA-6wvg-2gwh-7j53","GHSA-wp59-q6fv-34rx"],"status":"published","title":"markdownify-mcp before 1.2.0 Path Allowlist Bypass via isWithinDirectory Prefix Match","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.","severity":{"version":"4.0","score":8.7,"vector":"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","level":"high","assessor":"cna","from":"cve","others":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"cna","from":"cve"},{"version":"4.0","score":8.7,"vector":"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","level":"high","from":"ghsa"}]},"epss":{"day":"2026-12-04","score":0.00881,"percentile":0.6037,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-22"],"published":"2026-12-01T15:43:56Z","modified":"2026-12-04T16:38:28Z","products":[{"vendor":"zcaceres","product":"markdownify-mcp"}],"references":[{"url":"https://github.com/zcaceres/markdownify-mcp/security/advisories/GHSA-wp59-q6fv-34rx","tags":["vendor-advisory","advisory"]},{"url":"https://github.com/zcaceres/markdownify-mcp/commit/f7bc9752a30cd154a59c4015d74de786cd02a0e9","tags":["patch","fix"]},{"url":"https://github.com/zcaceres/markdownify-mcp/releases/tag/v1.2.0","tags":["release-notes","advisory"]},{"url":"https://github.com/zcaceres/markdownify-mcp/blob/v1.1.0/src/utils.ts#L106-L110","tags":["technical-description","article"]},{"url":"https://www.vulncheck.com/advisories/markdownify-mcp-before-1.2.0-path-allowlist-bypass-via-iswithindirectory-prefix-match","tags":["third-party-advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-140424","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-6wvg-2gwh-7j53"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140424.json","tags":["advisory"]},{"url":"https://github.com/zcaceres/markdownify-mcp","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2026-140424","title":"markdownify-mcp before 1.2.0 Path Allowlist Bypass via isWithinDirectory Prefix Match","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.","status":"published","published":"2026-12-01T15:43:56.535Z","modified":"2026-12-01T22:12:58.583Z","cvss":[{"version":"4.0","score":8.7,"vector":"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","level":"high","assessor":"cna"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"cna"}],"cwes":["CWE-22"],"ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"partial","date":"2026-12-01"},"updated_at":"2026-12-01T22:18:46.736778Z"}],"euvd":[{"id":"EUVD-2026-140347","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.","status":"published","published":"2026-12-01T15:43:56Z","modified":"2026-12-01T22:12:58Z","cvss":[{"version":"4.0","score":8.7,"vector":"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","level":"high"}],"updated_at":"2026-12-01T21:20:38.064884Z"}],"ghsa":[{"id":"GHSA-6wvg-2gwh-7j53","title":"markdownify-mcp before 1.2.0 contains a path traversal vulnerability in isWithinDirectory() that...","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.","status":"published","published":"2026-12-01T18:31:45Z","modified":"2026-12-01T18:31:45Z","cvss":[{"version":"4.0","score":8.7,"vector":"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","level":"high"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-12-01T19:00:43.861074Z"}],"nvd":[{"id":"CVE-2026-140424","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.","status":"published","published":"2026-12-01T16:18:21.13Z","modified":"2026-12-04T16:38:28.523Z","cvss":[{"version":"4.0","score":8.7,"vector":"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","level":"high","assessor":"secondary"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"secondary"}],"cwes":["CWE-22"],"ssvc":{"exploitation":"none","automatable":"yes","technical_impact":"partial","date":"2026-12-01"},"updated_at":"2026-12-01T23:25:12.236518Z"}],"osv":[{"id":"CVE-2026-140424","title":"markdownify-mcp before 1.2.0 Path Allowlist Bypass via isWithinDirectory Prefix Match","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.","status":"published","published":"2026-12-01T15:43:56.535Z","modified":"2026-12-02T21:01:37.941649015Z","cvss":[{"version":"4.0","score":8.7,"vector":"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","level":"high"}],"cwes":["CWE-22"],"updated_at":"2026-12-02T21:28:42.350468Z"}]}}
