T08 · Insecure Dependencies
- Location
SKILL.md:37- Finding
Execution of an Unpinned Third-Party Package Through npx
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 37;README.md, line 31
Vulnerability Type: Unpinned executable dependency
Risk Level: MediumVulnerable Code
SKILL.md, line 37:bash npx clawhub@latest install react-compositionREADME.md, line 31:bash npx clawhub@latest install react-compositionTechnical Analysis
The installation instructions use
npxto download and execute the mutablelatestrelease of the third-partyclawhubpackage. This is not merely a dependency download:npxruns package-supplied executable code under the privileges of the user invoking the command.The project does not provide an exact package version, integrity hash, lockfile, vendored installer, or verification procedure. Consequently, the code executed by this documented command can change after the skill has been reviewed. A compromised package publisher account, npm registry release, transitive dependency, or package distribution channel could turn the installation command into an arbitrary-code execution path.
Attack Path
- An attacker compromises the
clawhubpackage publisher, its release process, or a dependency used by a future release. - The attacker publishes a malicious release and assigns or causes it to receive the
latestdistribution tag. - A user follows the installation instructions and executes
npx clawhub@latest install react-composition. npxretrieves the current mutable release and executes its CLI and any applicable package lifecycle behavior.- The malicious package executes with the permissions and environmental access of the invoking user.
Impact Assessment
Successful exploitation could execute arbitrary commands with the invoking user's privileges. Depending on the environment, this could allow access to project source code, writable user files, environment variables, developer credentials, SSH configuration, package registry tokens, or other resources available to that us ...[truncated 279 chars]
- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Replace
@latestwith an exact, reviewed version, for exampleclawhub@X.Y.Z. - Publish and document the expected npm registry, package identity, version, and integrity checksum.
- Verify the package provenance and signature before execution where supported.
- Use a lockfile or reviewed local installer so installation does not resolve mutable code at runtime.
- Avoid running the installer with administrative privileges.
- In CI environments, execute installation in a sandbox with minimal filesystem access, restricted credentials, and limited network permissions.
- Establish a process for reviewing each package version before updating the documented pin.
- Replace
