Gemini CLI: Remote Code Execution via workspace trust and tool allowlisting bypasses
What to do
- Upgrade to a fixed version: @google/gemini-cli 0.39.1, @google/gemini-cli 0.40.0-preview.3, google-github-actions/run-gemini-cli 0.1.22.
- Redeploy and restart long-running processes so they load the fixed code.
Affected packages
@google/gemini-cli
- < 0.39.1
- 0.39.1
Check your project: npm ls @google/gemini-cli --all
Is @google/gemini-cli@0.39.1 safe to install? See the upgrade verdict →
@google/gemini-cli
- = 0.40.0-preview.2
- 0.40.0-preview.3
Check your project: npm ls @google/gemini-cli --all
Is @google/gemini-cli@0.40.0-preview.3 safe to install? See the upgrade verdict →
google-github-actions/run-gemini-cli
- < 0.1.22
- 0.1.22
Check your project: grep -rn "google-github-actions/run-gemini-cli" .github/workflows