T08 · Insecure Dependencies
- Location
SKILL.md:61- Finding
Unpinned Third-Party Packages Are Automatically Executed or Globally Installed
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 61–70, 86–91, and 136
Vulnerability Type: Supply-chain exposure through unpinned npm packages
Risk Level: MediumVulnerable Code
json { "mcpServers": { "hyperbot-quote-mcp": { "command": "npx", "args": ["-y", "mcp-remote", "https://mcp.hyperbot.network/mcp/sse"] } } }markdown > **Recommended:** OpenClaw works best with `mcporter` for connecting to remote SSE servers. **Prerequisite:** Install mcporter ```bash npm install -g mcportertext ```markdown | "mcp-remote not found" | Run `npm install -g mcp-remote` |Technical Analysis
The Skill instructs users to run
mcp-remotethroughnpx -ywithout pinning an exact version. This permits npm to resolve, download, and execute the package version currently selected by the registry. The-yoption suppresses the normal installation confirmation.The alternative setup and troubleshooting instructions similarly install
mcporterandmcp-remoteglobally without version constraints, lockfiles, or integrity hashes. Because these packages are not included in the audited project, their installation scripts, transitive dependencies, and runtime behavior cannot be verified from this artifact.The remote MCP connection itself is consistent with the Skill's declared functionality. The security issue is specifically the mutable and automatically executable dependency resolution mechanism.
Attack Path
- An attacker compromises the npm account, release process, package registry entry, or a transitive dependency associated with
mcp-remoteormcporter. - The attacker publishes a malicious version that contains harmful lifecycle or runtime code.
- A user follows the documented setup instructions, or the MCP client launches the configured
npx -y mcp-remotecommand. - npm resolves the unpinned package to the attacker-controlled release and downloads it.
- The package's installation or ru ...[truncated 953 chars]
- An attacker compromises the npm account, release process, package registry entry, or a transitive dependency associated with
- Remediation
View remediation
Remediation Suggestions
-
Pin each package to an exact, reviewed version, for example:
json { "command": "npx", "args": [ "--no-install", "mcp-remote", "https://mcp.hyperbot.network/mcp/sse" ] }Install the exact version separately through a project-local dependency declaration:
bash npm install --save-exact mcp-remote@<reviewed-version> -
Commit and verify a lockfile so package versions and transitive dependencies are reproducible.
-
Use npm integrity verification, trusted registries, and dependency provenance controls where available.
-
Remove
-yfromnpxworkflows and avoid permittingnpxto download packages automatically at runtime. -
Prefer project-local dependencies over global installations. Replace
npm install -g mcporterandnpm install -g mcp-remotewith exact, locally pinned dependencies. -
Review package source code, lifecycle scripts, maintainer history, and transitive dependencies before approving a version.
-
Run the MCP bridge with least privilege in an isolated environment that cannot access unrelated credentials or sensitive files.
-
Document the expected package publisher, exact version, checksum or integrity value, and a controlled upgrade process.
-
