subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
merged_env = dict(os.environ) merged_env.update(env) proc = subprocess.Popen( [command] + args, stdin=subprocess.PIPE, stdout=subprocess.PIPE,- Confidence
- 97% confidence
- Finding
- The code executes a command and arguments derived from MCP server metadata or a user-supplied config file, which means a health check can launch arbitrary local programs. Although it does not use a shell, this is still dangerous because the feature turns configuration data into code execution, and in this skill's context users are encouraged to install and test third-party servers from registries.
