T08 · Insecure Dependencies
- Location
README.md:6- Finding
Unpinned Third-Party Package Execution Through npx
- Content
View full analysis
Vulnerability Details
File Location:
README.md, line 6
Vulnerability Type: Supply-chain exposure caused by executing a mutable third-party package version
Risk Level: MediumVulnerable Code
bash npx clawhub@latest install habit-tracker-proTechnical Analysis
The documented installation command instructs users to download and execute the version of the
clawhubnpm package currently associated with the mutablelatestdistribution tag. The command does not pin an audited package version or provide an integrity constraint.Because npm package tags can be updated after this project has been reviewed, the code ultimately executed by this command may differ from the code available at audit time. If the package publisher account, npm package, release process, or a relevant supply-chain component is compromised, a malicious release assigned to
latestcould be downloaded and executed by users following the documentation.There is no evidence in the audited files that the current
clawhubpackage is malicious. The vulnerability is the unsafe trust model created by recommending execution of an unpinned, remotely resolved dependency.Attack Path
- An attacker compromises the
clawhubnpm package, its publisher credentials, or its release pipeline. - The attacker publishes a malicious package release and assigns it to the
latestdistribution tag. - A user follows the installation command in
README.md. npxresolves and downloads the attacker-controlled release from the configured npm registry.- Package lifecycle behavior or the invoked CLI entry point runs under the user's account.
- The malicious package can perform actions allowed by that account before or while processing the requested installation.
Impact Assessment
Successful exploitation could provide attacker-controlled code with the privileges of the user running
npx. Depending on the local environment and the user's permissions, this could perm ...[truncated 483 chars]- An attacker compromises the
- Remediation
View remediation
Remediation Suggestions
- Replace
@latestwith an exact, reviewed version:
bash npx clawhub@X.Y.Z install habit-tracker-pro- Review the selected release, including its package metadata, executable entry points, lifecycle scripts, transitive dependencies, publisher identity, and provenance.
- Where supported, verify package integrity and registry provenance before execution.
- Use a lockfile and deterministic dependency installation when integrating the tool into a project or automated environment.
- Test installation in a restricted container, sandbox, or low-privilege account before recommending it to users.
- Avoid running the installation command as
root, withsudo, or in CI jobs that expose unrelated secrets. - Establish a controlled update process so that version changes are explicitly reviewed rather than automatically inherited through a mutable distribution tag.
- Replace
