T08 · Insecure Dependencies
- Location
Skill.md:14- Finding
Unpinned Third-Party CLI Dependency
- Content
View full analysis
Vulnerability Details
File Location:
Skill.md, line 14
Vulnerability Type: Unpinned third-party dependency installed from a mutable upstream source
Risk Level: MediumVulnerable Code Snippet:
bash - User must have `hevycli` installed (`go install github.com/nsampre/hevycli@latest`)Technical Analysis
The skill instructs users to install
hevycliusing the mutable Go version selector@latest. This does not identify a specific reviewed release or immutable commit. Consequently, the code downloaded and compiled when a user follows the instruction can differ from the code available when the skill was audited.This creates a supply-chain risk: compromise of the upstream repository, maintainer account, release process, or a future malicious upstream change could cause attacker-controlled code to be installed and executed with the user's privileges. The project provides no version pin, checksum, signature verification, or provenance validation to establish that the installed dependency is the expected artifact.
Attack Path
- An attacker compromises the upstream repository, a maintainer account, or its release process.
- The attacker publishes a malicious version that resolves as the latest available release.
- A user follows the documented prerequisite and runs:
bash go install github.com/nsampre/hevycli@latest - The Go toolchain retrieves and compiles the compromised source.
- The user subsequently executes the installed CLI while configuring an API key or accessing workout data.
- The malicious CLI operates with the user's local privileges and may access data available to that process.
Impact Assessment
Successful exploitation could execute arbitrary code under the account running the CLI. Potentially exposed resources include the configured Hevy API key, retrieved fitness and workout records, environment variables, and files accessible to the user. Th ...[truncated 181 chars]
- Remediation
View remediation
Remediation Suggestions
- Replace
@latestwith a reviewed, explicit semantic version:bash go install github.com/nsampre/hevycli@vX.Y.Z - Prefer an immutable commit identifier if release tags cannot be trusted or independently verified.
- Document the approved version and update it only after reviewing the relevant source changes and dependency graph.
- Provide checksums or signed release information and require users to verify artifact integrity and provenance before installation.
- Recommend running the CLI with least privilege and without unrelated sensitive environment variables or filesystem access.
- Establish a periodic dependency-review process for security advisories, ownership changes, and unexpected modifications to the upstream project.
- Replace
