T08 · Insecure Dependencies
- Location
SKILL.md:46- Finding
Automatic Execution of an Unpinned Third-Party npm Package
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 46-52
Vulnerability Type:T08: Insecure Dependencies
Risk Level: Mediumjson { "mcpServers": { "pipeworx-flights": { "command": "npx", "args": ["-y", "mcp-remote@latest", "https://gateway.pipeworx.io/flights/mcp"] } } }Technical Analysis
The documented MCP configuration invokes
npxwith the-yoption to download and executemcp-remote@latestwithout interactive confirmation. The mutablelatesttag does not pin the dependency to a reviewed version or cryptographic integrity value. Consequently, the code executed by this configuration can change after the Skill has been audited.This is a supply-chain exposure rather than evidence that the current package is malicious. Exploitation would require compromise or malicious control of the package, its publisher account, the package registry delivery path, or a future release referenced by
latest.Attack Path
- An attacker compromises the npm package, its publisher account, or another relevant package-distribution component.
- The attacker publishes a malicious version selected by the
latesttag. - A user applies the MCP configuration from
SKILL.md. npx -yretrieves the mutable package version and executes it without requesting confirmation.- The malicious package runs with the permissions and environment available to the Agent process.
Impact Assessment
A successfully compromised dependency could execute arbitrary code with the privileges of the user running the Agent. Depending on the runtime environment, this could expose accessible files, environment variables, tokens, MCP traffic, and other credentials; permit modification of user-owned data; or initiate unauthorized network requests. The scope is limited by the operating-system account, sandboxing, filesystem restrictions, environment-variable filtering, and network contr ...[truncated 31 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace
mcp-remote@latestwith an exact, audited package version. - Use a lockfile and verify package integrity through trusted registry metadata or an independently managed checksum.
- Avoid automatic installation and execution with
npx -yin production deployments; install reviewed dependencies through a controlled build process. - Record the expected package publisher, source repository, version, and integrity value so deployments can validate provenance.
- Monitor the dependency for ownership changes, compromised releases, and security advisories.
- Run the MCP process under a dedicated least-privilege account or sandbox.
- Restrict filesystem access, remove unnecessary environment variables and credentials, and limit outbound network access to required endpoints.
- Re-audit the dependency before upgrading to a newer version.
- Replace
