subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
""" try: print(f'[INFO] 正在安装依赖: {package_name}...') result = subprocess.run( [sys.executable, '-m', 'pip', 'install', package_name], capture_output=True, text=True,- Confidence
- 97% confidence
- Finding
- The skill invokes pip at runtime through subprocess, which introduces package installation and network-capable execution into a document conversion workflow. Even though shell injection is avoided by passing an argument list, this still expands the trust boundary substantially: untrusted or compromised package sources, dependency confusion, or unintended package installation can lead to arbitrary code execution during install.
