npm
CVE-2026-140424
markdownify-mcp before 1.2.0 Path Allowlist Bypass via isWithinDirectory Prefix Match
- Severity
- High 8.7
- Published
- 1 Dec 2026
- Last changed
- 1 Dec 2026
- Added to UpHeron
- 1 Dec 2026
- Fixed in
- 1.2.0
- Weakness
- Path traversal (CWE-22)
- Attack
- Over the network · No login needed · No user action needed
- Attacker can
- Read data
- CVSS 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- Sources
- CVE Program
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 software
| Software | Affected versions |
|---|---|
mcp-markdownify-servernpm · osv:npm:mcp-markdownify-server |
|
About mcp-markdownify-server
- Weekly downloads (npm)
- 608npm, 26 Nov 2026
Vulnerabilities in mcp-markdownify-server
- In our list
- 2
- Published in the last 12 months
- 2
- Critical, last 12 months
- 0
- High, last 12 months
- 2
- Known exploited
- 0
- CVE-2026-137308markdownify-mcp before 1.2.0 SSRF Protection Bypass via validateUrl and validateRepoUrlHigh 8.3 26 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-140424