subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
print(f"{RED}wenyan-cli 未安装!{NC}") print(f"{YELLOW}正在安装 wenyan-cli...{NC}") try: subprocess.run( ["npm", "install", "-g", "@wenyan-md/cli"], check=True, capture_output=False,- Confidence
- 87% confidence
- Finding
- The skill automatically performs a global npm install when a dependency is missing, which executes package-manager logic and modifies the host system. That expands the skill's capabilities beyond publishing and introduces supply-chain risk if the package or registry response is compromised.
