T03 · Remote Payload Retrieval and Execution
- Location
SKILL.md:24- Finding
Unpinned Remote Package Download and Execution
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 24-25
Vulnerability Type: Unpinned dependency and mutable remote payload execution
Risk Level: Highjson { "mcpServers": { "pipeworx-movies": { "command": "npx", "args": ["-y", "mcp-remote@latest", "https://gateway.pipeworx.io/movies/mcp"] } } }Technical Analysis
The documented configuration invokes
npxwith the-yoption and executesmcp-remote@latest. Thelatesttag is mutable, so the code downloaded and executed in the future may differ from the code available when this skill was reviewed. The-yoption suppresses the normal installation confirmation.This creates both a remote payload execution risk and a software supply-chain risk. If the package, its publication account, its dependencies, or the package registry is compromised, following the documented instructions can result in attacker-controlled JavaScript executing with the permissions of the user running the MCP client.
Attack Path
- An attacker compromises the
mcp-remotepackage, its maintainer account, one of its transitive dependencies, or the package distribution channel. - The attacker publishes a malicious release and causes the mutable
latesttag to resolve to it. - A user or agent follows the configuration in
SKILL.md. npx -ydownloads the current package without interactive approval and runs its lifecycle or application code.- The malicious package executes locally with the invoking process's permissions.
Impact Assessment
Successful exploitation could provide arbitrary code execution under the account that launches the MCP server. Depending on that account's permissions and environment, the payload could read accessible files and environment variables, steal credentials, modify user-owned data, or make unauthorized network requests. The repository does not itself request elevated privileges, so the ...[truncated 77 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Replace
mcp-remote@latestwith a specific, reviewed version. - Use a lockfile and package-manager integrity metadata to verify the exact package contents.
- Avoid automatic confirmation through
npx -ywhere practical, particularly for first-time installation. - Document the authoritative package publisher and expected package checksum.
- Review the selected release and its transitive dependencies before deployment.
- Run the MCP process in a sandbox or container with minimal filesystem, environment-variable, and network access.
- Establish a controlled update process in which new versions are reviewed before the pinned version is changed.
- Replace
