T08 · Insecure Dependencies
- Location
SKILL.md:266- Finding
Unpinned Third-Party Package Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, line 266
Vulnerability Type: Unpinned package installation from a third-party registry
Risk Level: MediumComplete Evidence Snippet:
shell npm install -D tailwindcssTechnical Analysis
The skill recommends installing Tailwind CSS without specifying an audited version or requiring a lockfile and integrity verification. Package resolution therefore depends on the registry state at execution time, meaning future installations may retrieve code different from the version reviewed during the audit.
npm installation can execute package lifecycle scripts with the permissions of the agent process. Although no malicious package or lifecycle script is present in this project, the instruction creates a supply-chain exposure if the upstream package, its transitive dependencies, the configured registry, or name resolution is compromised.
Attack Path
- An operator or agent follows the dependency-installation instruction.
- npm resolves the unpinned package and transitive dependency versions from the configured registry.
- A compromised registry response, upstream release, or transitive dependency supplies malicious package content.
- npm installs the content and may execute lifecycle scripts.
- The malicious code runs with the agent process's filesystem, network, and environment-variable access.
This path is conditional on compromise of the dependency supply chain or registry configuration; the audited file does not itself contain a malicious package.
Impact Assessment
Successful exploitation could provide code execution under the account running npm. The resulting scope may include modification of the project workspace, access to readable files and environment variables, network communication, and alteration of locally installed dependencies. If package installation is performed under an elevated account, the impact could extend to syste ...[truncated 17 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin Tailwind CSS to a specifically reviewed version rather than resolving the latest available release.
- Commit and enforce a package lockfile containing integrity hashes.
- Prefer
npm ciover unconstrained installation in automated environments. - Use
--ignore-scriptswhen package lifecycle scripts are not required. - Configure an approved registry and prevent unexpected registry overrides through project or user npm configuration.
- Audit direct and transitive dependencies before installation.
- Execute package installation in an isolated, nonprivileged environment with restricted filesystem, environment-variable, and network access.
