T08 · Insecure Dependencies
- Location
SKILL.md:14- Finding
Unpinned Third-Party npm Package Is Automatically Downloaded and Executed
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 14-15
Vulnerability Type: Unpinned and automatically executed third-party dependency
Risk Level: MediumVulnerable Code
json { "mcpServers": { "campertunity": { "command": "npx", "args": ["-y", "campertunity-ai-tools"] } } }The package is also declared without an exact version in the skill metadata at line 4:
yaml metadata: {"openclaw":{"homepage":"https://campertunity.com","install":[{"id":"npm","kind":"node","formula":"campertunity-ai-tools","bins":["campertunity-ai-tools"],"label":"Campertunity MCP Server"}],"requires":{"anyBins":["campertunity-ai-tools","npx"]}}}Technical Analysis
The configuration invokes
npxwith the-yoption and an npm package name that has no exact version or integrity constraint. Consequently,npxmay retrieve the package version currently resolved by the configured npm registry and execute its lifecycle or application code without an interactive confirmation step.Because the effective executable is external to this project and mutable after review, the audited
SKILL.mddoes not establish which implementation will run. The project contains no lockfile, integrity hash, vendored source, or other mechanism for verifying that the downloaded artifact is the version that was security-reviewed.This creates a supply-chain risk if the package, one of its transitive dependencies, the publisher account, or the package registry is compromised. The audit found no evidence that
campertunity-ai-toolsis currently malicious; the vulnerability is the unsafe, unpinned execution mechanism.Attack Path
- An attacker compromises the npm publisher account, package distribution channel, or a dependency used by
campertunity-ai-tools. - The attacker publishes a malicious version that remains resolvable under the package name.
- A user configures or invokes the sk ...[truncated 1202 chars]
- An attacker compromises the npm publisher account, package distribution channel, or a dependency used by
- Remediation
View remediation
Remediation Suggestions
- Pin the dependency to an exact, reviewed version, for example by changing the argument to
campertunity-ai-tools@<exact-version>. Do not use a floating tag or version range. - Maintain a lockfile generated from a reviewed dependency graph and enforce lockfile-based, reproducible installation where the host platform supports it.
- Verify npm provenance and package integrity before execution. Record and validate the expected artifact integrity hash in the installation process.
- Remove automatic approval through
-ywhere practical so that unexpected downloads or package-resolution changes require explicit review. - Prefer installing a reviewed package artifact during a controlled setup phase instead of downloading executable code when the skill is invoked.
- Review the package and its transitive dependencies, monitor publisher and dependency changes, and automate alerts for unexpected releases or integrity changes.
- Run the MCP server with least privilege in a restricted account or sandbox. Limit filesystem access, environment variables, credentials, and outbound network access to those required for campground search and booking-link functionality.
- Document the package's expected network destinations and permissions so administrators can enforce an allowlist and detect anomalous behavior.
- Pin the dependency to an exact, reviewed version, for example by changing the argument to
