All vulnerabilities

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.

From the CVE Program.

Affected software

SoftwareAffected versions
mcp-markdownify-servernpm · osv:npm:mcp-markdownify-server
  • Every version before 1.2.0

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
Search the list for mcp-markdownify-server

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-140424