T08 · Insecure Dependencies
- Location
requirements.txt:1- Finding
Incorrect and Unpinned DOCX Dependency Creates Supply-Chain Risk
- Content
View full analysis
- Remediation
View remediation
``` 2. Pin an exact version after compatibility and vulnerability review. 3. Generate and enforce cryptographic hashes, for example with a locked requirements file and `pip install --require-hashes`. 4. Configure package installation to use an approved package index. 5. Add a clean-environment test that installs dependencies and verifies: ```python from docx import Document ``` 6. Add dependency vulnerability and provenance scanning to CI. 7. Keep the package name consistent across `requirements.txt`, `SKILL.md`, and runtime error messages. ]]>
