T08 · Insecure Dependencies
- Location
SKILL.md:13- Finding
Unpinned Third-Party Package Execution via npx
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 13
Vulnerability Type: Unpinned and immediately executed third-party dependency
Risk Level: MediumVulnerable Code Snippet:
markdown The `veezee` CLI (`npx @veezee/sdk init`) mints and stores the same key.Technical Analysis
The setup documentation instructs the user or agent to execute
npx @veezee/sdk initwithout specifying an exact package version, lockfile, or integrity hash. If the package is not already available locally,npxcan retrieve it from the configured npm registry and immediately execute its CLI code.Because package resolution is not pinned to a reviewed release, the code executed during setup can change after the Skill has been audited. A compromised npm publisher account, package distribution channel, or later malicious release could therefore introduce arbitrary executable behavior. Package lifecycle scripts and the CLI entry point may run with the same operating-system permissions and environment access as the invoking user or agent.
Attack Path
- An attacker compromises the
@veezee/sdkpublisher account, package repository, or release process. - The attacker publishes a malicious package version under the same package name.
- A user or agent follows the Skill's setup instruction and runs
npx @veezee/sdk init. npxresolves and downloads the current package version because no exact version or integrity constraint is supplied.- The malicious package code executes with the privileges of the invoking process.
- That code could access files, environment variables, locally available credentials, or network resources permitted to the user.
Impact Assessment
Successful exploitation could result in arbitrary code execution under the invoking user's privileges. The accessible scope may include project files, user-writable files, environment variables, stored API credentials, and network services ...[truncated 218 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Pin the CLI to a specific reviewed version, for example
npx @veezee/sdk@<audited-exact-version> init, rather than resolving the latest release. - Commit and enforce a package lockfile when integrating the SDK into a project.
- Verify package provenance and registry integrity metadata before execution.
- Prefer installing the reviewed dependency without running lifecycle scripts, inspecting it, and then invoking the trusted local binary.
- Run initialization in a sandbox or least-privilege environment with restricted filesystem, credential, and network access.
- Document where the minted API key is stored and require restrictive file permissions for that credential.
- Establish a dependency-update review process so version changes are explicitly audited before execution.
- Pin the CLI to a specific reviewed version, for example
