T08 · Insecure Dependencies
- Location
SKILL.md:13- Finding
Unpinned npm Package Is Downloaded and Executed via npx
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 13-19
Vulnerability Type:T08: Insecure Dependencies
Risk Level: MediumVulnerable Code
sh claude mcp add reality-next-door-walk -- npx -y reality-next-door-walkjson { "mcpServers": { "reality-next-door-walk": { "command": "npx", "args": ["-y", "reality-next-door-walk"] } } }Technical Analysis
Both documented installation methods invoke
npx -ywith the unversioned npm package namereality-next-door-walk. This causes npm to resolve, download, and execute whichever package version the configured registry currently serves. The-yoption suppresses the installation confirmation.The project contains only
SKILL.md; it provides no package source, exact version, lockfile, integrity hash, or publisher-verification material. Therefore, the remotely obtained implementation cannot be audited from this artifact, and its behavior can change after this Skill has been reviewed. Claims that the server makes no network calls, file writes, credential accesses, or logs are documentation statements rather than properties verifiable from the supplied project.Attack Path
- An attacker compromises the npm package, its publisher account, or the relevant package-delivery infrastructure.
- The attacker publishes a malicious version under the same package name.
- A user follows either connection example in
SKILL.md. npx -yresolves and downloads the mutable package without requesting confirmation.- npm lifecycle code or the package entry point executes with the privileges and environment of the MCP client user.
- The malicious package can attempt actions available to that user before or while presenting itself as the documented MCP server.
Impact Assessment
Successful exploitation permits arbitrary code execution within the invoking user's security context. Depending on host permissions and sandboxing, the packa ...[truncated 560 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin the package to an audited exact version rather than resolving the latest release, for example
reality-next-door-walk@X.Y.Z. - Verify the pinned release against reviewed source and record its expected registry integrity digest.
- Supply the implementation or a reproducible source reference with the Skill so the documented safety properties can be independently reviewed.
- Use a lockfile and a controlled installation process instead of relying solely on ad hoc
npx -yexecution. - Disable or ignore npm lifecycle scripts where compatible with the package's legitimate operation.
- Restrict package installation to a trusted registry and monitor publisher ownership and package provenance.
- Run the MCP server in a sandbox or container with minimal filesystem access, no inherited secrets, restricted process execution, and denied network access unless explicitly required.
- Periodically re-audit each package update before changing the pinned version.
- Pin the package to an audited exact version rather than resolving the latest release, for example
