T08 · Insecure Dependencies
- Location
SKILL.md:86- Finding
Unpinned Global npm Dependency Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 86
Vulnerability Type: Supply-chain risk from an unpinned third-party dependency
Risk Level: MediumVulnerable Code
bash npm i -g @runcomfy/cliTechnical Analysis
The documented prerequisite installs the mutable latest version of
@runcomfy/cliglobally without a version or integrity pin. Consequently, the code installed by this instruction may differ from the version originally reviewed.npm packages may execute lifecycle scripts during installation with the permissions of the invoking user. If the package publisher account, registry distribution channel, or a future package release is compromised, following this instruction could execute attacker-controlled code. The global installation scope also makes the resulting executable available beyond the current project.
The audit found no evidence that
@runcomfy/cliis currently malicious. This finding concerns the unsafe dependency installation method and its exposure to future supply-chain compromise.Attack Path
- An attacker compromises the npm publisher account, package release process, or another relevant supply-chain component for
@runcomfy/cli. - The attacker publishes a malicious release as the latest package version.
- A user follows the prerequisite in
SKILL.mdand runsnpm i -g @runcomfy/cli. - npm retrieves the attacker-controlled release because no reviewed version is pinned.
- Malicious package code or lifecycle scripts execute with the installing user's privileges.
- The globally installed
runcomfyexecutable may continue executing attacker logic in later invocations.
Impact Assessment
Successful exploitation could provide arbitrary code execution with the privileges of the user performing the installation. Depending on that user's access, an attacker could read or alter user-accessible files, steal environment variables or locally stored credentials such as RunComfy tokens, manipu ...[truncated 273 chars]
- An attacker compromises the npm publisher account, package release process, or another relevant supply-chain component for
- Remediation
View remediation
Remediation Suggestions
- Pin the CLI to a specifically reviewed release:
bash npm install -g @runcomfy/cli@X.Y.Z - Document the approved version and update it only after reviewing release provenance, package contents, dependencies, and lifecycle scripts.
- Publish and verify the expected package integrity digest or signed provenance where supported.
- Prefer a project-local dependency governed by a committed lockfile instead of a global installation when operationally practical.
- In automated environments, use a trusted internal registry mirror or an allowlisted artifact repository.
- Run installation and execution as a dedicated, least-privileged user without access to unrelated credentials or sensitive files.
- Consider disabling npm lifecycle scripts during installation if the verified CLI does not require them, and separately verify that the installed executable remains functional.
- Pin the CLI to a specifically reviewed release:
