subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
"[jumpserver-skills] Missing Python dependencies detected: %s. Installing with %s\n" % (", ".join(missing_distributions), " ".join(install_command)) ) result = subprocess.run(install_command, capture_output=True, text=True, check=False) if result.returncode != 0: _print_json_error( "Automatic dependency installation failed.",- Confidence
- 94% confidence
- Finding
- The code launches a pip installation subprocess automatically when dependencies are missing. Although it avoids shell injection by passing an argument list to subprocess.run, it still performs network-capable code installation and execution as part of normal skill operation, which creates supply-chain and environment-modification risk.
