CVE-2025-54073: sammcj mcp-package-docs · Command Injection
Affects sammcj mcp-package-docsSource CVE Database V5
Not known to be exploited · 11% EPSS · CVSS 7.5 High : upgrade to 0.1.27 soon.
Data as of 26 Oct 2026, 12:55 UTC
- EPSS
- 11.2% chance of exploitation in 30 days – higher than 95% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.1.27
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 18 Jul 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade sammcj/mcp-package-docs to 0.1.27.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubsammcj/mcp-package-docspkg:github/sammcj/mcp-package-docsOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate this vulnerability, European organizations should immediately upgrade mcp-package-docs to version 0.1.28 or later, which contains the official fix for the command injection flaw. Until the upgrade is applied, organizations should restrict network exposure of the mcp-package-docs server to trusted internal networks only and implement strict input validation and sanitization at the application layer to prevent injection of shell metacharacters. Employing runtime application self-protection (RASP) or web application firewalls (WAFs) capable of detecting and blocking command injection patterns can provide additional defense-in-depth. Monitoring and logging of command execution attempts should be enhanced to detect suspicious activity. Organizations should also conduct code reviews and security audits of any custom integrations involving mcp-package-docs to ensure no unsafe command execution practices exist. Finally, applying the principle of least privilege to the server process—running it with minimal permissions—can limit the impact of a successful exploit.
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.
References
- github.com/sammcj/mcp-package-docs/security/advisories/GHSA-vf9j-h32g-2764 (opens in a new tab)
- github.com/sammcj/mcp-package-docs/commit/cb4ad49615275379fd6f2f1cf1ec4731eec56eb9 (opens in a new tab)
- equixly.com/blog/2025/03/29/mcp-server-new-security-nightmare (opens in a new tab)
- github.com/advisories/GHSA-3q26-f695-pp76 (opens in a new tab)
- github.com/advisories/GHSA-5w57-2ccq-8w95 (opens in a new tab)
- github.com/advisories/GHSA-gjv4-ghm7-q58q (opens in a new tab)
- github.com/sammcj/mcp-package-docs/releases/tag/v0.1.27 (opens in a new tab)
- github.com/sammcj/mcp-package-docs/releases/tag/v0.1.28 (opens in a new tab)
- invariantlabs.ai/blog/mcp-github-vulnerability (opens in a new tab)