T08 · Insecure Dependencies
- Location
README.md:31- Finding
Unpinned npm Package Execution in Installation Instructions
- Content
View full analysis
Vulnerability Details
File Location:
README.md:31-33
Vulnerability Type: Unpinned third-party dependency execution
Risk Level: MediumVulnerable code:
bash npx clawhub@latest install tetsuakira-vk/youtube-to-blogTechnical Analysis
The documented installation command directs
npxto download and execute the mutablelatestrelease of theclawhubnpm package. The project does not pin an exact package version, provide an integrity hash, require signature verification, or include a lockfile that constrains the installer version.Because the
latestnpm distribution tag can be reassigned, the code executed by this command may differ from the version reviewed when the documentation was published. This creates a supply-chain trust boundary in which compromise of the package publisher, npm account, registry, or a future package release could expose users to arbitrary code execution.Attack Path
- An attacker compromises the npm publisher account, publication pipeline, package registry entry, or another mechanism controlling the
clawhubpackage. - The attacker publishes a malicious version and assigns it to the
latestdistribution tag. - A user follows the installation instructions and runs
npx clawhub@latest install tetsuakira-vk/youtube-to-blog. npxretrieves and executes the attacker-controlled package version.- The malicious package runs with the permissions of the invoking user and can access resources available to that account.
This is a conditional supply-chain exploitation path; the audited files do not establish that the current package is malicious.
Impact Assessment
Successful exploitation could provide arbitrary code execution under the invoking user's privileges. Depending on those privileges and the host configuration, an attacker could read or modify user-accessible files, steal environment variables or development credentials, alter installed skill ...[truncated 203 chars]
- An attacker compromises the npm publisher account, publication pipeline, package registry entry, or another mechanism controlling the
- Remediation
View remediation
Remediation Suggestions
- Replace
@latestwith a reviewed, exact package version, for example:bash npx clawhub@X.Y.Z install tetsuakira-vk/youtube-to-blog - Document the expected npm registry and official package provenance so users can verify that the package comes from the intended publisher.
- Publish and document cryptographic integrity information or package signatures where supported.
- Recommend reviewing the resolved package metadata and source before execution, particularly in privileged or CI environments.
- Avoid running the installer with elevated privileges.
- Establish a controlled update process in which new installer versions are reviewed before the documented version is changed.
- Replace
