T08 · Insecure Dependencies
- Location
SKILL.md:13- Finding
Unpinned Global npm Package Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 13
Vulnerability Type:T08: Insecure Dependencies
Risk Level: MediumVulnerable Code:
sh npm install -g @just-easy-tasks/jetTechnical Analysis
The setup documentation instructs users to install the current registry release of
@just-easy-tasks/jetglobally without pinning a reviewed version or requiring package-integrity verification. Consequently, the effective code installed by this command can change after the Skill has been audited.npm package installation can execute package lifecycle scripts. A compromised package release, maintainer account, or registry delivery path could therefore cause attacker-controlled code to run with the privileges of the user performing the installation. The global installation scope also places package files and executable links in shared user-level or system-level npm locations.
The package name is consistent with the service described by the Skill. There is no direct evidence in the audited file that the referenced package is currently malicious, typosquatted, or compromised. The finding concerns the unsafe, mutable dependency-installation practice.
Attack Path
- An attacker compromises the npm package, its publisher account, or its release process.
- The attacker publishes a malicious release under the referenced package name.
- A user follows the Skill instruction after that release becomes the registry default.
- npm retrieves the mutable release and may execute attacker-controlled lifecycle scripts during installation.
- The malicious package executes with the installing user's privileges and may modify files or commands accessible to that account.
Impact Assessment
Successful exploitation could permit arbitrary code execution with the privileges of the user running npm. The accessible scope may include that user's files, environment variables, credentials, and globally installed ...[truncated 240 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin the dependency to a specifically reviewed release, for example:
sh npm install -g @just-easy-tasks/jet@1.0.0 - Document the expected npm registry and avoid permitting installation from arbitrary registry overrides.
- Verify package provenance, signatures, or published integrity information where supported.
- Review package contents and lifecycle scripts before approving version upgrades.
- Prefer a locked, isolated execution environment over a global installation when practical.
- Establish a controlled update process so new releases are security-reviewed before the documented version is changed.
- Pin the dependency to a specifically reviewed release, for example:
