T08 · Insecure Dependencies
- Location
SKILL.md:9- Finding
Unpinned npm Dependency Creates a Supply-Chain Execution Risk
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 9-17
Vulnerability Type: Unpinned third-party npm dependency
Risk Level: MediumVulnerable Code
yaml "requires": { "bins": ["mcporter"] }, "install": [ { "id": "mcporter", "kind": "node", "package": "mcporter", "bins": ["mcporter"], "label": "Install mcporter CLI (npm)", }, ],Technical Analysis
The skill declares
mcporteras an npm dependency without specifying an exact, reviewed version or integrity hash. Consequently, installation may resolve to whichever package version is current in the configured npm registry at installation time.This makes the effective installed code mutable after the skill has been audited. If the upstream package, maintainer account, publication pipeline, or configured package registry is compromised, a malicious package release could be installed automatically. npm packages can execute code through lifecycle scripts during installation, and the resulting
mcporterexecutable is subsequently trusted to configure and invoke the remote MCP service.The audit did not establish that the current
mcporterpackage is malicious. The confirmed issue is the absence of dependency pinning and integrity verification, which exposes the installation process to avoidable supply-chain risk.Attack Path
- An attacker compromises the
mcporternpm package, its maintainer account, release pipeline, or the npm registry used by the environment. - The attacker publishes a malicious version under the legitimate package name.
- A user installs this skill in an environment where
mcporteris not already present. - The skill manager resolves the unversioned
"package": "mcporter"declaration to the attacker-controlled release. - Malicious code executes through an npm lifecycle script or when the installed
mcporterbinary is invoked. - The payload acts wi ...[truncated 723 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
-
Pin
mcporterto an exact, reviewed version rather than allowing installation of the latest release, for example:yaml "package": "mcporter@<reviewed-exact-version>" -
Where supported by the skill installation framework, verify the package archive using a cryptographic integrity hash or a committed lockfile.
-
Disable npm lifecycle scripts during installation when they are not required, such as by using
--ignore-scripts. -
Install and run the dependency as an unprivileged user in a sandbox or container with limited filesystem and network access.
-
Review the pinned package version, its transitive dependencies, lifecycle scripts, and published provenance before deployment.
-
Use a trusted internal registry or allowlist and automated dependency monitoring to detect unexpected ownership, provenance, or version changes.
-
Require an explicit review before upgrading the pinned dependency.
-
