CVE-2025-58358 Details
Description
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.
A command injection vulnerability has been identified in the Markdownify Model Context Protocol (MCP) server, specifically in versions prior to 0.0.2. The issue arises from the unsanitized use of input parameters in a call to child_process.exec, which enables attackers to inject arbitrary system commands. Exploitation of this vulnerability can lead to remote code execution under the privileges of the server process. The vulnerability is present because the server directly incorporates unvalidated user input into command-line strings, allowing for the injection of shell metacharacters. This vulnerability has been addressed in version 0.0.2.
Users are advised to update to Markdownify version 0.0.2 or later, where this vulnerability has been fixed. For those maintaining their own versions, it is recommended to avoid using child_process.exec with untrusted input and to use child_process.execFile instead, which allows for safer execution of commands by passing arguments as an array, preventing shell interpretation. Additionally, consider using the untildify package to convert tilde paths to absolute paths before executing commands.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 4, 2025CISA-ADP
Assessed Sep 4, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/zcaceres/markdownify-mcp/commit/a31204de058b22a47e1dcc24508993cfe97e5bb3 | [email protected] | Source CodeVendor |
| https://github.com/zcaceres/markdownify-mcp/security/advisories/GHSA-45qj-4xq3-3c45 | [email protected] | AdvisoryExploitRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-77 | Improper Neutralization of Special Elements used in a Command ('Command Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| zcaceres markdownify-mcp | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 4, 2025 | New CVE Received | [email protected] |
Volerion