CVE-2026-140424
JSON

8.7high

markdownify-mcp before 1.2.0 Path Allowlist Bypass via isWithinDirectory Prefix Match

Severity
8.7high CVSS:4.0 by VulnCheck
Published
Last changed
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.

Affected

Product or packageVersionsReported by
zcaceres markdownify-mcpbefore 1.2.0CVE List

All scores

VulnCheck8.7high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
VulnCheck7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

References

Sources

SourceRecordLicence
CVE ListCVE-2026-140424 changed 2026-12-01CVE Terms of Use
NVDCVE-2026-140424 changed 2026-12-01Public domain