T08 · Insecure Dependencies
- Location
SKILL.md:391- Finding
Automatic Execution of an Unpinned npm Package
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 391–392
Vulnerability Type: Unpinned third-party dependency execution
Risk Level: MediumVulnerable Code
json "command": "npx", "args": ["-y", "--package", "@metacomp/visionx-kyt-mcp", "visionx-kyt-mcp", "--token", "YOUR_API_KEY"]The package is also declared without an exact version in the skill metadata:
json "install": [{"id": "npm", "kind": "node", "package": "@metacomp/visionx-kyt-mcp", "bins": ["visionx-kyt-mcp"], "label": "Install MetaComp VisionX KYT MCP server (requires METACOMP_TOKEN API key from metacomp.ai)"}]Technical Analysis
The setup instructions invoke
npxwith the-yoption and an npm package that has no pinned version. This causes npm to resolve, download, and execute whichever package version is current when the command runs. The reviewedSKILL.mdtherefore does not define the exact code that will ultimately execute.No evidence establishes that the named package is currently malicious, and its scoped name is consistent with the referenced organization. Nevertheless, the installation method creates a supply-chain vulnerability: a compromised publisher account, malicious future release, registry compromise, or dependency compromise could change the effective executable payload after this skill has been audited.
The
-yoption further removes the interactive confirmation that might otherwise alert a user to package installation.Attack Path
- An attacker compromises the npm publisher account, package release process, or one of the package's transitive dependencies.
- The attacker publishes a malicious release under
@metacomp/visionx-kyt-mcp. - A user follows the documented setup instructions or starts the configured integration.
npx -yresolves and downloads the malicious current version without interactive approval.- npm package lifecycle code or the
visionx-kyt-mcpexecutab ...[truncated 789 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin
@metacomp/visionx-kyt-mcpto an exact, reviewed version rather than allowing npm to resolve the latest release. - Record and verify the package's integrity hash or trusted provenance before execution.
- Use a lockfile and a controlled installation process where supported.
- Remove
-yso unexpected installation behavior requires explicit approval. - Audit the pinned package and its transitive dependency tree before deployment.
- Run the package in a restricted environment with only the filesystem and network permissions required for wallet-risk queries.
- Establish a controlled upgrade process in which new package versions are reviewed before the pin is changed.
- Pin
