subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
env = os.environ.copy() env["MCP_TOKEN"] = token env["API_URL"] = os.environ.get("IMIVA_API_URL", os.environ.get("API_URL", DEFAULT_API_URL)) proc = subprocess.Popen( [npx, "-y", PACKAGE], stdin=subprocess.PIPE, stdout=subprocess.PIPE,- Confidence
- 84% confidence
- Finding
- The script executes `npx -y @infimind/ecom-content-cli@latest`, which downloads and runs the latest package version at runtime without pinning integrity or version. This creates a software supply-chain risk: if the upstream package is compromised or a breaking/malicious release is published, the skill will execute attacker-controlled code with access to the inherited environment, including `MCP_TOKEN`.
