Arbitrary Command Injection Affecting mcp-package-docs package, versions <0.1.28


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.21% (44th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Command Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-MCPPACKAGEDOCS-11520801
  • published8 Aug 2025
  • disclosed5 Aug 2025
  • creditAlessio Della Libera

Introduced: 5 Aug 2025

NewCVE-2025-54073  (opens in a new tab)
CWE-77  (opens in a new tab)

How to fix?

Upgrade mcp-package-docs to version 0.1.28 or higher.

Overview

mcp-package-docs is an An MCP server that provides LLMs with efficient access to package documentation across multiple programming languages

Affected versions of this package are vulnerable to Arbitrary Command Injection via unsanitized input passed to the exec function. An attacker can execute arbitrary system commands by injecting shell metacharacters into input parameters that are incorporated directly into shell command strings.

CVSS Base Scores

version 4.0
version 3.1