U.S. flag   An official website of the United States government
Dot gov

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Https

Secure .gov websites use HTTPS
A lock (Dot gov) or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.

CVE-2025-54073 Detail

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.


Metrics

NVD enrichment efforts reference publicly available information to associate vector strings. CVSS information contributed by other sources is also displayed.
CVSS 4.0 Severity and Vector Strings:

NIST CVSS score
NIST: NVD
N/A
NVD assessment not yet provided.

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to [email protected].

URL Source(s) Tag(s)
https://equixly.com/blog/2025/03/29/mcp-server-new-security-nightmare GitHub, Inc.
https://github.com/advisories/GHSA-3q26-f695-pp76 CISA-ADP, GitHub, Inc.
https://github.com/advisories/GHSA-5w57-2ccq-8w95 CISA-ADP, GitHub, Inc.
https://github.com/advisories/GHSA-gjv4-ghm7-q58q CISA-ADP, GitHub, Inc.
https://github.com/sammcj/mcp-package-docs/commit/cb4ad49615275379fd6f2f1cf1ec4731eec56eb9 GitHub, Inc.
https://github.com/sammcj/mcp-package-docs/releases/tag/v0.1.27 GitHub, Inc.
https://github.com/sammcj/mcp-package-docs/releases/tag/v0.1.28 GitHub, Inc.
https://github.com/sammcj/mcp-package-docs/security/advisories/GHSA-vf9j-h32g-2764 CISA-ADP, GitHub, Inc.
https://invariantlabs.ai/blog/mcp-github-vulnerability GitHub, Inc.

Weakness Enumeration

CWE-ID CWE Name Source
CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection') GitHub, Inc.  

Change History

2 change records found show changes

Quick Info

CVE Dictionary Entry:
CVE-2025-54073
NVD Published Date:
07/18/2025
NVD Last Modified:
07/22/2025
Source:
GitHub, Inc.