cloudflare-workers-cd-rollback
Warn
Audited by Gen Agent Trust Hub on Jun 23, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The
assets/workflows/deploy.ymlworkflow is vulnerable to shell command injection in the 'Deploy to Cloudflare Workers' step. Theinputs.messageparameter is directly interpolated into a shell variable assignment:msg="${{ inputs.message }}". An attacker who controls this input (e.g., via workflow_dispatch) can execute arbitrary commands on the runner by including shell metacharacters like double quotes and semicolons.\n- [REMOTE_CODE_EXECUTION]: Inassets/workflows/deploy.yml, the MoonBit toolchain is installed usingcurl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash. Piped remote execution from external domains is a high-risk pattern as it permits arbitrary code execution if the source script or domain is compromised.\n- [EXTERNAL_DOWNLOADS]: The deployment process usesnpx -y @dotenvx/dotenvx@latestto manage secrets. Pulling the latest version of a package from the npm registry at runtime without version pinning introduces a supply chain risk where a malicious package update could compromise the deployment environment.\n- [EXTERNAL_DOWNLOADS]: The workflow utilizes standard GitHub Actions such asactions/checkout@v4andactions/setup-node@v4to prepare the environment.
Audit Metadata