T08 · Insecure Dependencies
Warning
- Location
- README.md:19
- Finding
- Unpinned third-party package execution during installation## Vulnerability Details **File Location**: `README.md:19-23` **Vulnerability Type**: Unpinned third-party dependency execution **Risk Level**: Medium ### Vulnerable Code ```markdown ## Install ```bash npx skills add AntreasAntoniou/beautiful-pdf ``` ``` ### Technical Analysis The documented installation command invokes `npx` without pinning the `skills` package to an exact, reviewed version. Depending on the local environment and cache state, `npx` can retrieve and execute the latest available version of that package. The referenced Skill source is also identified by a mutable repository name rather than an immutable commit, verified release, or integrity hash. Consequently, the code executed during a future installation may differ from the content covered by this audit. No evidence indicates that the currently audited project or dependency is malicious. The vulnerability is the lack of dependency and source immutability, which unnecessarily expands the installation-time supply-chain trust boundary. ### Attack Path 1. An attacker compromises the package registry account, the `skills` package, its maintainer account, or the referenced upstream repository. 2. The attacker publishes a malicious package version or modifies the mutable Skill source. 3. A user follows the documented `npx skills add AntreasAntoniou/beautiful-pdf` command. 4. `npx` retrieves the unpinned package, and the installer resolves the mutable Skill source. 5. Malicious installation logic executes with the permissions of the user running the command. ### Impact Assessment Successful exploitation could provide arbitrary code execution under the installing user's account. The resulting scope could include reading or modifying user-accessible files, accessing environment variables and credentials available to that process, altering installed Skill content, and making outbound network requests. This finding does not provide privilege escalat ...[truncated 130 chars]
- Remediation
- ## Remediation Suggestions 1. Pin the installer package to an exact reviewed version, for example by using an explicit `skills@x.y.z` version supported by the package ecosystem. 2. Pin the Skill source to an immutable commit digest or cryptographically verified release rather than a mutable repository reference. 3. Use lockfiles and registry integrity metadata where applicable. 4. Publish expected checksums or signatures for release artifacts and document how users should verify them. 5. Recommend reviewing installation scripts before execution and running installation with the least-privileged account required. 6. Establish an update process in which dependency changes are reviewed and tested before the documented pinned versions are changed.
