subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
def _get_version_via_npx(slug: str) -> str | None: """L3: 通过 npx 临时下载 clawhub 执行(无需全局安装,需要 Node.js)""" import subprocess result = subprocess.run( ["npx", "--yes", "clawhub@latest", "inspect", slug, "--json"], capture_output=True, text=True, timeout=60, )- Confidence
- 97% confidence
- Finding
- result = subprocess.run( ["npx", "--yes", "clawhub@latest", "inspect", slug, "--json"], capture_output=True, text=True, timeout=60, )
