T08 · Insecure Dependencies
- Location
SKILL.md:14- Finding
Unpinned Third-Party Package Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 14–18
Vulnerability Type: Uncontrolled third-party dependency installation
Risk Level: MediumVulnerable Code
text - **Standard Installation**: `pip install ollamadiffuser` - **Full Suite (Recommended)**: `pip install "ollamadiffuser[full]"` - **Low-VRAM/GGUF Support**: `pip install "ollamadiffuser[gguf]"` - **MCP/Agent Integration**: `pip install "ollamadiffuser[mcp]"` - **Apple Silicon (Metal)**: `CMAKE_ARGS="-DSD_METAL=ON" pip install stable-diffusion-cpp-python`Technical Analysis
The skill directs users or agents to install third-party PyPI packages without pinning reviewed versions, validating package hashes, using a lockfile, or documenting a verified package source. Consequently, the installed code and transitive dependency graph can change independently of the reviewed skill.
Python package installation may execute build-system hooks or other installation logic. The recommended
fullextra can also expand the number of transitive dependencies and therefore the supply-chain attack surface. If an upstream package, release process, or transitive dependency is compromised, following these instructions could execute attacker-controlled code under the privileges of the user runningpip.The audit found no evidence that the named packages are currently malicious. The vulnerability is the absence of controls ensuring that future installations reproduce a known and reviewed dependency set.
Attack Path
- An attacker compromises a named package, one of its transitive dependencies, or the associated package publishing account.
- The attacker publishes a malicious release that satisfies the unrestricted dependency request.
- A user or agent follows the skill instructions and runs one of the documented
pip installcommands. - Pip retrieves the current uncontrolled release and resolves similarly uncontrolled transitive depen ...[truncated 864 chars]
- Remediation
View remediation
Remediation Suggestions
- Pin every direct dependency to a reviewed, exact version rather than allowing the newest available release.
- Generate a lockfile or fully pinned requirements file that includes all transitive dependencies.
- Record trusted package hashes and install with pip's
--require-hashesoption. - Document the verified official package index and package ownership information; do not use untrusted indexes or dependency links.
- Install dependencies inside a dedicated virtual environment or similarly isolated runtime using a non-privileged account.
- Avoid recommending the broad
fullextra by default. Document the minimum extra required for each workflow. - Scan and review dependency updates before modifying pinned versions, including build dependencies declared through
pyproject.toml. - Advise users not to run package installation commands with administrative or root privileges.
