T08 · Insecure Dependencies
- Location
SKILL.md:217- Finding
Unpinned Packages Executed Through npx
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 217-226
Vulnerability Type: Unpinned executable dependency and mutable Skill update source
Risk Level: Mediumbash # Check if updates are available npx skills check # Update all installed skills to latest versions npx skills updatebash npx skills add openserv-labs/skillsTechnical Analysis
The documented commands invoke the unversioned
skillsnpm package throughnpx. If the package is not already installed locally,npxcan resolve, download, and execute the current registry version under the user's account. The instructions do not pin an exact package version, verify a package integrity hash, or identify a reviewed Skill commit.The update and installation commands also retrieve mutable Skill content. Consequently, the code and instructions that ultimately execute can differ from the content reviewed in this audit. This creates a supply-chain trust boundary in which compromise of the package, publisher account, package registry, or upstream Skill repository could introduce attacker-controlled behavior.
Attack Path
- An attacker compromises the relevant npm package, publisher credentials, registry resolution path, or upstream Skill source.
- The attacker publishes or serves a malicious version while preserving the expected package or repository name.
- A user follows the instructions and runs one of the unversioned
npx skillscommands. npxresolves and executes the mutable package under the user's local privileges.- The malicious package can access resources available to that user. Alternatively, an update can install malicious Skill instructions that influence later agent operations.
Impact Assessment
A malicious npm payload would execute with the privileges of the user running
npx. Depending on the execution environment, this could expose accessible files, environment variables, development ...[truncated 379 chars]- Remediation
View remediation
Remediation Suggestions
- Pin the CLI to an exact reviewed version, for example
npx --yes skills@X.Y.Z, after verifying the correct package identity. - Use a lockfile and require npm integrity verification for executable dependencies.
- Pin Skill installation to an immutable commit hash or signed release rather than a mutable repository head.
- Document the expected npm scope, publisher, repository, release checksum, and signature-verification procedure.
- Separate checking from applying updates; display the proposed version and changes, then require explicit review before installation.
- Run package and Skill installation in a restricted environment without production secrets or elevated privileges.
- Re-audit updated Skill content before trusting or executing it.
- Pin the CLI to an exact reviewed version, for example
