Quick answers
- Is CVE-2025-58358 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2025-58358 being exploited in the wild.
- How severe is CVE-2025-58358?
- Low severity, with a CVSS score of 3.1, published 2 September 2025.
- Which products and versions are affected?
- mcp-markdownify-server (npm) SEMVER:introduced=0,fixed=0.0.2.
- Is there a fix for CVE-2025-58358?
- Yes. mcp-markdownify-server (npm): upgrade to 0.0.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2025-58358 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2025-58358?
- Check whether you run mcp-markdownify-server (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- mcp-markdownify-server (npm): upgrade to 0.0.2 or later
npm install mcp-markdownify-server@0.0.2
Technical details
The vulnerability is a shell command injection (CWE-77) caused by the unsafe use of Node.js child_process.exec() with unvalidated user input. The vulnerable code constructs shell commands by directly interpolating file paths and other parameters into command strings without sanitization. An attacker can inject shell metacharacters (|, >, &&, $(), etc.) through the filepath parameter to execute arbitrary commands. The attack can be delivered directly via the pptx-to-markdown tool interface, or indirectly through prompt injection—embedding malicious instructions in markdown file content that an MCP client is tricked into processing. The fix involves replacing child_process.exec() with child_process.execFile(), which accepts arguments as a separate array to prevent shell interpretation. Additionally, tilde-expansion utilities should be used to safely handle relative paths before passing them to execFile().
Affected products
- zcaceres mcp-markdownify-server <=0.0.1
Identifiers
- CVE-2025-58358
- GHSA-45qj-4xq3-3c45
Timeline
- 2025-09-02: disclosed: Advisory published
- 2025-09-02: patched: Fixed in version 0.0.2
- 2025-09-04: advisory: NVD published CVE-2025-58358