T08 · Insecure Dependencies
- Location
SKILL.md:11- Finding
Unpinned Third-Party Dependency Installation
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md, lines 11-15
Vulnerability Type: Unpinned dependency and supply-chain exposure
Risk Level: Mediummarkdown ## Requirements ```bash pip install httpxtext ### Technical Analysis The installation command does not constrain `httpx` to a reviewed version and does not verify the downloaded artifact with a cryptographic hash. Its result therefore depends on the package versions and artifacts available through the Python package index configured on the user's system at installation time. Although `httpx` is a legitimate package and there is no evidence that it is malicious, unconstrained dependency resolution prevents reproducible installation and could expose users to a future compromised release, malicious index substitution, or an incompatible version. Installing from a source distribution may also invoke package build logic on the local host. ### Attack Path 1. An attacker compromises a future dependency release, a configured package index, or the relevant distribution channel. 2. A user follows the documented `pip install httpx` command. 3. `pip` resolves the attacker-controlled or compromised artifact because no approved version or hash is specified. 4. The artifact is installed, and any applicable build-time code executes with the privileges of the user running `pip`. 5. Malicious package code may subsequently execute when the scraper imports or uses the dependency. ### Impact Assessment Exploitation could run code with the privileges of the user performing the installation or running the scraper. The potential scope includes that user's files, environment variables, network access, and accessible application data. The documentation does not request elevated privileges, so administrative or root-level impact is not established unless the user independently runs the command with such privileges.- Remediation
View remediation
Remediation Suggestions
- Pin
httpxand its transitive dependencies to reviewed versions in a lock file. - Require cryptographic hashes, for example with
pip install --require-hashes -r requirements.txt. - Generate dependencies from a trusted source and review updates before changing the lock file.
- Recommend installation in a dedicated virtual environment running without administrative privileges.
- Add automated dependency vulnerability and integrity scanning to the release process.
- Pin
