T08 · Insecure Dependencies
- Location
SKILL.md:22- Finding
Unpinned Third-Party Package Retrieval and Execution
- Content
View full analysis
- Remediation
View remediation
"] ``` - Avoid `npx -y` where possible so installation and execution do not occur automatically without confirmation. - For source installations, check out a reviewed commit hash or signed release rather than the mutable default branch. - Commit and review a dependency lockfile, and use `npm ci` instead of an unconstrained `npm install`. - Verify npm provenance, package integrity, release signatures, and repository ownership before execution. - Audit npm lifecycle scripts and transitive dependencies before exposing the process to credentials. - Run the MCP server under a restricted user or sandbox with access only to the required configuration and network destination. - Establish an upgrade process in which each new version is reviewed before changing the pinned version. ]]>
