T08 · Insecure Dependencies
- Location
requirements.txt:1- Finding
Incorrect and Unpinned Third-Party Dependencies
- Content
View full analysis
- Remediation
View remediation
requests== ``` 2. Select versions that have been reviewed for compatibility and known vulnerabilities. 3. Generate a lock file containing transitive dependencies. 4. Require package hashes during installation, for example through a hash-pinned requirements file and `pip install --require-hashes`. 5. Install only from explicitly approved HTTPS package indexes. 6. Run dependency vulnerability and license scans in CI. 7. Test installation in a clean environment to confirm that `from docx import Document` resolves to the `python-docx` distribution. 8. Keep `SKILL.md` and `requirements.txt` synchronized so they identify the same packages. ]]>
