subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL, ) subprocess.run( [str(venv_python), "-m", "pip", "install", "--disable-pip-version-check", "reportlab"], check=True, )- Confidence
- 93% confidence
- Finding
- The script automatically runs pip install reportlab at runtime without confirmation, causing network access and execution of package-management logic during normal report generation. This increases supply-chain risk and violates least surprise for a fitness PDF generator, especially if the package index, TLS trust store, or environment is compromised.
