T08 · Insecure Dependencies
- Location
SKILL.md:11- Finding
Unpinned Global Installation of a Third-Party npm Package
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 11
Vulnerability Type: Unpinned third-party dependency installed globally
Risk Level: MediumVulnerable Code
bash npm install -g paperbanana-dashscopeTechnical Analysis
The skill instructs users to install the latest available version of
paperbanana-dashscopeglobally without pinning an audited version or verifying package integrity or provenance. The reviewed artifact contains only documentation and metadata; it does not include the npm package's implementation, a lockfile, or integrity hashes. Consequently, the code ultimately installed and executed is outside the auditable scope of this artifact and can change after review.npm installations may execute package lifecycle scripts, while subsequent CLI use executes package code with the invoking user's privileges. Global installation also increases scope by modifying the user's global npm environment.
Attack Path
- An attacker compromises the npm publisher account, package registry path, or a future package release.
- The attacker publishes a malicious version under the documented package name.
- A user follows the skill's unpinned global installation command.
- npm retrieves the attacker-controlled latest release.
- Malicious lifecycle scripts may execute during installation, or malicious code executes when the CLI is invoked.
- The payload operates with the installing or invoking user's privileges.
Impact Assessment
Successful exploitation could permit arbitrary code execution with the user's privileges. Depending on those privileges and the malicious package implementation, the affected scope could include accessible files, environment variables and API credentials, outbound network access, and modification of the user's global npm environment. No malicious package implementation or active compromise was established in the reviewed files; the risk arises from th ...[truncated 50 chars]
- Remediation
View remediation
Remediation Suggestions
-
Pin installation to a specifically reviewed release, for example:
bash npm install -g paperbanana-dashscope@1.0.2 -
Provide and verify the expected package integrity digest and npm provenance before installation.
-
Prefer a project-local, lockfile-controlled installation over a global installation to reduce system-wide impact.
-
Disable lifecycle scripts during installation when they are not required:
bash npm install --ignore-scripts --save-exact paperbanana-dashscope@1.0.2 -
Audit the package source and published tarball for the pinned release, including lifecycle scripts and transitive dependencies.
-
Document a controlled upgrade procedure requiring security review before changing the pinned version.
-
