CVE-2025-54073 Details
Description
mcp-package-docs is an MCP (Model Context Protocol) server that provides LLMs with efficient access to package documentation across multiple programming languages and language server protocol (LSP) capabilities. A command injection vulnerability exists in the `mcp-package-docs` MCP Server prior to the fix in commit cb4ad49615275379fd6f2f1cf1ec4731eec56eb9. The vulnerability is 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.). Commit cb4ad49615275379fd6f2f1cf1ec4731eec56eb9 in version 0.1.27 contains a fix for the issue, but upgrading to 0.1.28 is recommended.
A command injection vulnerability has been identified in the MCP Package Docs server, which is an MCP (Model Context Protocol) server that facilitates access to package documentation for large language models (LLMs). The vulnerability exists in versions prior to 0.1.27 and arises from the unsanitized use of input parameters in a call to 'child_process.exec'. This flaw enables attackers to inject arbitrary system commands, potentially leading to remote code execution under the server process's privileges. The issue is exacerbated by the server's construction and execution of shell commands using unvalidated user input, allowing for the injection of shell metacharacters. The vulnerability can be exploited through indirect prompt injection, where an MCP client is manipulated into executing malicious commands.
Users are advised to upgrade to version 0.1.28, where this vulnerability has been patched.
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 Jul 18, 2025CISA-ADP
Assessed Jul 22, 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.
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 |
|---|---|
| sammcj mcp-package-docs | <= 0.1.27 (semver) |
CPE
Remediation
| |
| cyanheads/git-mcp-server | <= 2.1.4 (semver) |
CPE
Remediation
| |
| alfonsograziano/node-code-sandbox-mcp | <= 1.2.0 (semver) |
CPE
Remediation
| |
| Flux159/mcp-server-kubernetes | < 2.5.0 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jul 22, 2025 | CVE Modified | CISA-ADP |
| Jul 18, 2025 | New CVE Received | [email protected] |
Volerion