T08 · Insecure Dependencies
- Location
SKILL.md:24- Finding
Unpinned Third-Party MCP Package Is Automatically Downloaded and Executed
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:24andSKILL.md:52-63
Vulnerability Type: Unpinned and automatically executed third-party dependency
Risk Level: HighVulnerable code snippets:
bash npm install -g tokportal-mcpjson { "mcpServers": { "tokportal": { "command": "npx", "args": ["-y", "tokportal-mcp"], "env": { "TOKPORTAL_API_KEY": "tok_live_your_key_here" } } } }Technical Analysis
The installation command and MCP configuration reference
tokportal-mcpwithout an exact version or integrity constraint. In particular,npx -ymay retrieve the package's current registry release and execute it automatically without interactive confirmation.Because the package implementation is not present in the audited project, its behavior cannot be verified from the repository. The effective executable can also change after this Skill has been reviewed if a new package version is published. A compromised maintainer account, registry compromise, malicious update, or package ownership transfer could therefore introduce arbitrary code into subsequent installations.
The global installation recommendation further increases exposure by placing an unverified package in a broadly accessible command environment.
Attack Path
- An attacker compromises the package publisher account, package distribution channel, or a newly released package version.
- The attacker publishes a modified
tokportal-mcprelease containing malicious installation or runtime code. - A user follows the documented setup or starts the configured MCP server.
npm install -g tokportal-mcpornpx -y tokportal-mcpresolves the mutable package name to the attacker-controlled release.- npm downloads and executes package lifecycle or runtime code with the permissions of the invoking user.
- The malicious process can access resources available ...[truncated 763 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin
tokportal-mcpto a reviewed, exact version rather than resolving the latest release. - Commit and enforce a lockfile containing package integrity hashes.
- Avoid
npx -y, which combines remote retrieval with automatic execution. Install a reviewed dependency locally and invoke its pinned binary instead. - Avoid global installation unless it is operationally necessary.
- Publish or vendor the MCP server source so its implementation can be audited alongside the Skill.
- Verify package provenance through npm provenance attestations, signed releases, and trusted publisher controls.
- Run the MCP server under a dedicated, least-privileged account or sandbox with limited filesystem and network access.
- Restrict the API key supplied to the process to the minimum permissions and spending limits required.
- Establish a controlled dependency-update process that reviews source changes and integrity metadata before upgrading.
- Pin
