T08 · Insecure Dependencies
- Location
requirements.txt:1- Finding
Incorrect and Unpinned Third-Party Dependency
- Content
View full analysis
- Remediation
View remediation
``` 2. Select a currently supported release only after reviewing its provenance, release history, and known vulnerabilities. 3. Generate a lock file or hash-verified requirements file so installations use reviewed artifacts: ```text python-docx== \ --hash=sha256: ``` 4. Use `pip install --require-hashes -r requirements.txt` in CI and production workflows. 5. Add an automated test that creates, processes, and reloads a minimal DOCX document to detect dependency or API mismatches. 6. Configure dependency scanning and controlled update review rather than accepting arbitrary future versions. ]]>
