T08 · Insecure Dependencies
- Location
SKILL.md:45- Finding
Unpinned Third-Party Package Installation and Execution
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 45–75 and 81
Vulnerability Type: Unpinned package installation and mutable CLI execution
Risk Level: MediumEvidence
bash # React npm install @ainative/react-sdk # Next.js npm install @ainative/next-sdk # Svelte npm install @ainative/svelte-sdk # Vue npm install @ainative/vue-sdkbash # Full ZeroDB MCP (76 tools — vectors, memory, NoSQL, files, PostgreSQL) npm install -g ainative-zerodb-mcp-server # Memory-only MCP (6 tools — lightweight) npm install -g ainative-zerodb-memory-mcpbash # ZeroDB instant project setup (auto-configures your IDE) npx zerodb initbash pip install zerodb-mcp pip install zerodb-cli pip install langchain-zerodb pip install llama-index-vector-stores-zerodbbash # 1. Get an instant API key + project npx zerodb initTechnical Analysis
The Skill instructs users to install npm and Python packages without fixed versions, lockfiles, integrity hashes, or other artifact verification. Consequently, the installed code depends on mutable package-registry state rather than the specific release reviewed by the Skill author.
The
npx zerodb initcommand presents the greatest exposure because it can retrieve and immediately execute the currently resolved package version. npm packages may also execute package-controlled lifecycle scripts during installation. The global npm installation commands increase the affected environment's scope, while the comment stating thatzerodb initautomatically configures the user's IDE indicates that the CLI may modify local configuration.The audited file does not provide verifiable provenance tying the referenced registry packages to the declared platform. This is a supply-chain weakness rather than evidence that the current packages are malicious.
Attack Path
- An attacker compromises a referenced package publisher account, package release process, or another relevant part of the pac ...[truncated 1354 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin every npm and Python dependency to a reviewed, immutable version.
- Replace the mutable CLI invocation with a pinned command, such as:
bash npx zerodb@<reviewed-version> init - Provide and enforce lockfiles where the installation workflow supports them.
- Use package integrity hashes or hash-locked Python requirements, and verify downloaded artifacts before execution.
- Link to verified package-publisher profiles and document how users can validate package provenance.
- Prefer local, project-scoped npm installation over global installation.
- Avoid running package managers with administrator or root privileges.
- Document all files, IDE settings, credentials, and network operations affected by
zerodb init; request explicit user approval before modifying them. - Consider disabling installation scripts where compatible with the packages, or audit all lifecycle scripts before permitting execution.
- Establish a release-review and dependency-monitoring process so pinned versions are updated only after security validation.
