# CVE-2025-54073: mcp-package-docs vulnerable to command injection in several tools

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 12.6%, higher than 96% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 4 links below, marked "exploit"
- Published: 2025-07-18T15:45:09.114Z
- Modified: 2026-06-17T09:39:22.260Z
- Also known as: GHSA-vf9j-h32g-2764
- Weaknesses: CWE-77
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- sammcj mcp-package-docs: < 0.1.27
- mcp-package-docs (npm): before 0.1.28

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/sammcj/mcp-package-docs/security/advisories/GHSA-vf9j-h32g-2764> (exploit, web)
- <https://github.com/advisories/GHSA-3q26-f695-pp76> (exploit, advisory)
- <https://github.com/advisories/GHSA-5w57-2ccq-8w95> (exploit, advisory)
- <https://github.com/advisories/GHSA-gjv4-ghm7-q58q> (exploit, advisory)
- <https://github.com/sammcj/mcp-package-docs/commit/cb4ad49615275379fd6f2f1cf1ec4731eec56eb9> (web)
- <https://equixly.com/blog/2025/03/29/mcp-server-new-security-nightmare> (web)
- <https://github.com/sammcj/mcp-package-docs/releases/tag/v0.1.27> (web)
- <https://github.com/sammcj/mcp-package-docs/releases/tag/v0.1.28> (web)
- <https://invariantlabs.ai/blog/mcp-github-vulnerability> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-54073> (advisory)
- <https://github.com/sammcj/mcp-package-docs> (package)

## Sources

- CVE List: [CVE-2025-54073](https://www.cve.org/CVERecord?id=CVE-2025-54073), CVE Terms of Use, modified 2025-07-22
- GitHub Advisory Database: [GHSA-vf9j-h32g-2764](https://github.com/advisories/GHSA-vf9j-h32g-2764), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2025-54073](https://nvd.nist.gov/vuln/detail/CVE-2025-54073), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-54073 · Whole record: https://cve.day/CVE-2025-54073.json · Rebuilt by cve.day 2026-11-25T22:59:01.417Z
