subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
env["MINIMAX_API_KEY"] = self.config.api_keys['minimax'] env["MINIMAX_API_HOST"] = "https://api.minimaxi.com" result = subprocess.run( ["node", mcp_client, "web_search", query], capture_output=True, text=True, timeout=60, env=env )- Confidence
- 81% confidence
- Finding
- The code launches an external Node.js process from another skill workspace and passes user-controlled query data into it. Although it uses an argument list rather than a shell, this still expands the trust boundary: the Python skill delegates execution to an external script whose behavior and argument handling are not validated here, creating command-execution and data-exfiltration risk if that helper skill is modified or compromised.
