T08 · Insecure Dependencies
- Location
SKILL.md:8- Finding
Unpinned MCP Package Execution Through npx
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 8-14
Vulnerability Type: Unpinned third-party executable dependency
Risk Level: HighVulnerable Code
json { "mcpServers": { "myagentinbox": { "command": "npx", "args": ["mcp-remote", "https://myagentinbox.com/mcp"] } } }Technical Analysis
The MCP configuration invokes
mcp-remotethroughnpxwithout specifying an exact package version or verifying package integrity. If the package is not already available in the execution environment,npxmay resolve and download executable package code from the npm registry at setup or runtime.Because no version, lockfile, checksum, or controlled installation source is specified, the code executed by this configuration can differ from the version that was originally reviewed. A compromised maintainer account, malicious package release, registry compromise, or unexpected upstream update could therefore introduce arbitrary executable behavior.
The configuration also connects the package to the externally operated MCP endpoint
https://myagentinbox.com/mcp. The endpoint's tools and responses can change independently of this static Skill. This increases the trust placed in external infrastructure, although the confirmed dependency vulnerability is specifically the unpinned local execution ofmcp-remote.Attack Path
- An attacker compromises the
mcp-remotepackage, its publishing account, or its distribution channel and publishes a malicious version. - A user installs or activates the Skill in an environment where the package is not pinned and securely preinstalled.
- The configured
npx mcp-remotecommand resolves the attacker-controlled or compromised package version. npxdownloads and executes the package under the identity and permissions of the Agent process.- Malicious package code accesses resources available to that process, performs un ...[truncated 575 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Pin
mcp-remoteto a specific, audited version rather than relying on unversioned npm resolution. - Install the dependency during a controlled build or deployment stage using a committed lockfile and integrity metadata.
- Avoid runtime package installation through
npx; invoke a verified local executable from an immutable installation instead. - Verify the package publisher, source repository, release provenance, and dependency tree before deployment.
- Use npm integrity checks, a trusted internal registry or allowlist, and automated dependency scanning.
- Run the MCP client with least privilege in an isolated environment that restricts filesystem access, environment variables, subprocess creation, and outbound network destinations.
- Restrict outbound connectivity to the expected MCP host and validate its TLS identity.
- Treat remote MCP responses, email bodies, and downloaded attachments as untrusted data; do not execute attachments or interpret message content as Agent instructions without explicit validation.
- Pin
