Markdownify is vulnerable to command injection through pptx-to-markdown tool
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-58358
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 07:17 UTC · Revision 1
Source evidence
Markdownify is vulnerable to command injection through pptx-to-markdown tool
core-osv · Original sourcePublished 4 Sept 2025, 00:34 UTC
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.
osv:CVE-2025-58358
Complete source record
{
"id": "7b2bd5dc646af69325d8a6d64d0ebd72c08b30681b3f66998ba2d0af3456427c",
"url": "https://osv.dev/vulnerability/CVE-2025-58358",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Markdownify is vulnerable to command injection through pptx-to-markdown tool",
"summary": "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.",
"evidence": "osv:CVE-2025-58358",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2025-58358",
"aliases": [
"CVE-2025-58358",
"GHSA-45qj-4xq3-3c45"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/zcaceres/markdownify-mcp",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "a31204de058b22a47e1dcc24508993cfe97e5bb3"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"fixed": "a31204de058b22a47e1dcc24508993cfe97e5bb3"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-58358.json"
}
}
],
"modified": "2026-10-28T02:30:26.862455303Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/58xxx/CVE-2025-58358.json",
"https://github.com/zcaceres/markdownify-mcp/security/advisories/GHSA-45qj-4xq3-3c45",
"https://nvd.nist.gov/vuln/detail/CVE-2025-58358",
"https://github.com/zcaceres/markdownify-mcp/commit/a31204de058b22a47e1dcc24508993cfe97e5bb3"
],
"provider_metadata": {
"cwe_ids": [
"CWE-77"
],
"cna_assigner": "GitHub_M",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"fixed": "0.0.2"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
}
]
},
{
"extracted_events": [
{
"range": [
{
"fixed": "0.0.2"
}
],
"source": "DESCRIPTION"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/58xxx/CVE-2025-58358.json"
}
},
"related_cves": [
{
"value": "CVE-2025-58358",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 493329,
"published_at": "2025-09-04T00:34:33.819+00:00"
}