T08 · Insecure Dependencies
- Location
SKILL.md:79- Finding
Unpinned Third-Party Dependency Installation Instructions
- Content
View full analysis
Vulnerability Details
File Location:
SKILL.md:79; related dependency instructions inscripts/pdf_summary.py:9-11andscripts/pdf_to_markdown.py:8-10
Vulnerability Type: Unpinned and undeclared third-party dependencies
Risk Level: MediumEvidence
SKILL.md:79:bash # Requires: pip install pytesseract pdf2image + tesseractscripts/pdf_summary.py:9-11:python try: import pdfplumber except ImportError: sys.exit("FEJL: pip install pdfplumber")scripts/pdf_to_markdown.py:8-10:python try: import pdfplumber except ImportError: sys.exit("FEJL: pip install pdfplumber")Technical Analysis
The project directs users to install
pytesseract,pdf2image, andpdfplumberwithout specifying exact versions, package hashes, a lockfile, or an explicitly trusted package index. The scripts also depend onpypdf, but the project does not provide a dependency manifest that constrains or verifies that package.Package installation commands that resolve unconstrained versions make the installed implementation mutable after the Skill has been reviewed. If a dependency release or its distribution channel is compromised, users following these instructions could install attacker-controlled code. Python packages can execute code during installation and whenever imported by these scripts.
No evidence was found that the named packages are currently malicious. The confirmed issue is the absence of dependency pinning and integrity controls, which creates an avoidable supply-chain exposure.
Attack Path
- A user invokes a script without the required Python dependency installed.
- The script or documentation instructs the user to run an unconstrained
pip installcommand. pipresolves the package from its configured index without a project-provided version or hash constraint.- If the package, a future rele ...[truncated 786 chars]
- Remediation
View remediation
Remediation Suggestions
- Add a dependency manifest covering every runtime dependency, including
pdfplumber,pypdf,pytesseract, andpdf2image. - Pin each dependency to a reviewed exact version rather than allowing mutable latest-version resolution.
- Generate and verify cryptographic hashes, such as by using a hash-locked requirements file and
pip install --require-hashes. - Install packages only from an explicitly configured, trusted package index.
- Use an isolated virtual environment and avoid installing dependencies with root or administrator privileges.
- Add automated dependency vulnerability and integrity checks to the release process.
- Replace ad hoc error messages with a reference to the reviewed, locked dependency installation procedure.
- Ensure documented features reference files that actually exist; the current documentation mentions
scripts/pdf_ocr.py, which is absent from the audited package.
- Add a dependency manifest covering every runtime dependency, including
