T08 · Insecure Dependencies
- Location
README.md:36- Finding
Unpinned Package Execution Through a Mutable Release Tag
- Content
View full analysis
Vulnerability Details
File Location:
README.md:36-40
Vulnerability Type: Supply-chain risk caused by executing an unpinned third-party package
Risk Level: MediumVulnerable Code:
bash npx clawhub@latest install tetsuakira-vk/music-discoveryTechnical Analysis
The documented installation command invokes
npxwith the mutableclawhub@latestpackage reference. Depending on the local npm configuration and cache,npxmay download and execute the package from the npm registry. Thelatesttag can be reassigned to a different release after this project has been reviewed.The repository does not provide an exact dependency version, integrity hash, lockfile, or vendored installer implementation for this command. Consequently, the code ultimately executed by users cannot be verified solely from the audited project. This creates a supply-chain exposure if the upstream package, maintainer account, publication process, or mutable release tag is compromised.
Attack Path
- An attacker compromises the upstream
clawhubpackage, its maintainer account, or its publication pipeline. - The attacker publishes a malicious version and assigns the npm
latesttag to it. - A user follows the installation instructions and runs:
bash npx clawhub@latest install tetsuakira-vk/music-discovery npxretrieves the attacker-controlled release from the package registry.- The package's CLI code or applicable lifecycle behavior executes with the permissions of the invoking user.
This exploitation path depends on compromise or malicious modification of the external package; no malicious payload is present in the audited repository itself.
Impact Assessment
A malicious upstream release could execute arbitrary code under the invoking user's account. Depending on that account's privileges and environment, potential effects could include reading or modifying user-accessible fil ...[truncated 482 chars]
- An attacker compromises the upstream
- Remediation
View remediation
Remediation Suggestions
- Replace the mutable
@latestreference with an exact, reviewed version:bash npx clawhub@<exact-version> install tetsuakira-vk/music-discovery - Document the expected official package publisher and registry so users can verify the source before execution.
- Where supported, provide the expected package integrity digest and instructions for validating it.
- Use a lockfile or another reproducible installation mechanism when integrating the package into a larger project.
- Review and test each new
clawhubrelease before updating the documented version. - Advise users not to run the installation command with administrative or root privileges.
- Consider providing a non-executing download-and-verification workflow so users can inspect the installer before running it.
- Replace the mutable
