| Field | Value |
|---|---|
| CVE / NVD | CVE-2025-58358 |
| Date (index) | 2025-09-04 |
| Affected product (index) | Markdownify MCP server command injection |
| GHSA ID | GHSA-45qj-4xq3-3c45 |
| OWASP MCP Top 10 (2025) | MCP05 — Command Injection & Execution |
| Published / disclosed | 2025-09-04 |
| Component | mcp-markdownify-server |
| CVSS score | High — 7.5 |
| CWE | CWE-77 |
| Affected versions | mcp-markdownify-server <= 0.0.1 |
| Fixed versions | 0.0.2 |
| Fix status | Patched |
| Exploit status | Public CVE record; do not mirror weaponized payloads |
| EPSS score | 0.009900000 (FIRST EPSS, 2026-06-30) |
| Ecosystem | npm |
| Notes | Added during the 2026-06-24 Tier 1 missing-CVE review from NVD MCP keyword results. Re-check NVD before using this entry for compliance reporting. |
| Markdownify is a Model Context Protocol server for converting almost anything to Markdown. Versions below 0.0.2 contain a command injection vulnerability, caused by the unsanitized use of input parameters within a call to child_process.exec, enabling an attacker to inject arbitrary system commands. Successful exploitation can lead to remote code execution under the server process’s privileges. The server constructs and executes shell commands using unvalidated user input directly within command-line strings. This introduces the possibility of shell metacharacter injection ( | , >, &&, etc.). This issue is fixed in version 0.0.2. |
Exposure depends on how the affected MCP server, client, gateway, plugin, or adjacent AI tool is deployed. Prioritize systems reachable by untrusted users or networks, systems that accept attacker-controlled tool arguments, and systems with access to credentials, browsers, cloud APIs, Kubernetes clusters, databases, email, or desktop automation.
Primary mapped weakness: MCP05 — Command Injection & Execution. Confirm the exact CWE and affected code path in the NVD record and upstream advisory before adding exploit-specific detail.
MCP components bridge model output to privileged tools. Vulnerabilities in authentication, scope enforcement, command execution, SSRF validation, secret handling, or tool registration can turn prompt/tool input into host compromise, credential disclosure, unauthorized cloud/database access, or persistent malicious tool execution.
Add a minimal vulnerable code snippet here only after reviewing the linked upstream commit / advisory. Do not paste weaponized payloads.
Upgrade to the vendor-fixed version where available. If no fixed version is listed, restrict the affected component to trusted users and trusted networks, disable risky tools, validate tool arguments, and run the service with least-privilege credentials until upstream remediation is confirmed.
If a public PoC exists, prefer vendor advisories and defensive write-ups; do not host weaponized exploit code in this repository.
Track NVD references for CVE-2025-58358 and apply the upstream patched release or commit recommended by the vendor/CNA.