# CVE-2026-140424: markdownify-mcp before 1.2.0 Path Allowlist Bypass via isWithinDirectory Prefix Match

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2026-12-01T15:43:56.535Z
- Modified: 2026-12-01T23:17:41.380Z
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- zcaceres markdownify-mcp: before 1.2.0

## Every score

- VulnCheck: CVSS:4.0 8.7 High `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: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/zcaceres/markdownify-mcp/security/advisories/GHSA-wp59-q6fv-34rx> (vendor-advisory)
- <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/blob/v1.1.0/src/utils.ts#L106-L110> (technical-description)
- <https://www.vulncheck.com/advisories/markdownify-mcp-before-1.2.0-path-allowlist-bypass-via-iswithindirectory-prefix-match> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-140424](https://www.cve.org/CVERecord?id=CVE-2026-140424), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-140424](https://nvd.nist.gov/vuln/detail/CVE-2026-140424), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-140424 · Whole record: https://cve.day/CVE-2026-140424.json · Rebuilt by cve.day 2026-12-01T23:32:13.892Z
