subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
import feedparser except ImportError: import subprocess subprocess.check_call([sys.executable, "-m", "pip", "install", "feedparser", "-q"]) import feedparser- Confidence
- 95% confidence
- Finding
- The script executes pip at runtime via subprocess when feedparser is missing, which causes code and packages to be fetched and installed during normal execution without prior approval. This expands the trust boundary to the package index and runtime environment, and can lead to unintended code execution, dependency confusion, or environment tampering if package sources or installation behavior are compromised.
