← Back to scan
File as GitHub Issue repo: google-gemini/gemini-cli

Push this scan report to google-gemini/gemini-cli

Click the green button below to open GitHub’s new-issue form, pre-filled with the report title, summary table, top findings, and an embedded score-card image. No authentication needed — you review on GitHub before submitting. Repobility is credited as the scanner.

Embedded score card image

This image will render at the top of the issue body. Hosted on Repobility, refreshes automatically after re-scans.

Repobility score card

Issue title

JS: new RegExp() with non-literal

Curate findings to include

Pick exactly which findings appear in the issue body. By default the top 5 are included. Uncheck noise, check what matters.

Top 5 (default)
Severity Rule Title File:line
CRIT MINED116 [MINED116] Workflow uses `secrets.GEMINI_API_KEY` on a `pull_request` trigger: This workf… .github/workflows/ci.yml:443
CRIT MINED116 [MINED116] Workflow uses `secrets.GEMINI_CLI_ROBOT_GITHUB_PAT` on a `pull_request` trigge… .github/workflows/ci.yml:47
HIGH SEC083 [SEC083] JS: new RegExp() with non-literal: new RegExp(<variable>) — variable input can c… packages/core/src/policy/utils.ts:21
HIGH SEC083 [SEC083] JS: new RegExp() with non-literal: new RegExp(<variable>) — variable input can c… packages/core/src/hooks/hookPlanner.ts:107
HIGH SEC083 [SEC083] JS: new RegExp() with non-literal: new RegExp(<variable>) — variable input can c… packages/cli/src/services/McpPromptLoad…:196
HIGH SEC114 [SEC114] path.join / Path() on user-controlled segment without containment check: filepat… packages/core/src/tools/get-internal-do…:124
HIGH SEC114 [SEC114] path.join / Path() on user-controlled segment without containment check: filepat… packages/core/src/safety/built-in.ts:83
HIGH SEC114 [SEC114] path.join / Path() on user-controlled segment without containment check: filepat… packages/cli/src/commands/extensions/va…:54
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… packages/cli/src/test-utils/customMatch…:104
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… packages/cli/src/services/McpPromptLoad…:69
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… packages/cli/src/commands/extensions/up…:61
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… packages/cli/src/commands/mcp/add.ts:156
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… packages/cli/src/commands/gemma/platfor…:61
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… packages/cli/src/acp/acpSessionManager.…:309
HIGH SEC135 [SEC135] Auth/permission check missing on AI-generated endpoint: Mutating HTTP endpoint g… integration-tests/test-mcp-server.ts:37
HIGH SEC135 [SEC135] Auth/permission check missing on AI-generated endpoint: Mutating HTTP endpoint g… evals/update_topic.eval.ts:200
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … packages/cli/src/services/SlashCommandR…:150
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … packages/a2a-server/src/persistence/gcs…:163
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … esbuild.config.js:163
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… packages/cli/src/acp/commands/about.ts:32
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… .github/scripts/sync-maintainer-labels.…:57
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… .gemini/skills/ci/scripts/ci.mjs:41
HIGH MINED122 [MINED122] package.json dep `@google/gemini-cli-core` pulled from URL/Git: `dependencies.… packages/a2a-server/package.json:1
HIGH MINED122 [MINED122] package.json dep `@google/gemini-cli-test-utils` pulled from URL/Git: `devDepe… packages/cli/package.json:1
HIGH MINED122 [MINED122] package.json dep `@google/gemini-cli-core` pulled from URL/Git: `dependencies.… packages/cli/package.json:1
HIGH MINED122 [MINED122] package.json dep `@google/gemini-cli-core` pulled from URL/Git: `dependencies.… packages/test-utils/package.json:1
HIGH MINED122 [MINED122] package.json dep `@google/gemini-cli-test-utils` pulled from URL/Git: `devDepe… packages/core/package.json:1
HIGH MINED122 [MINED122] package.json dep `@google/gemini-cli-core` pulled from URL/Git: `dependencies.… packages/sdk/package.json:1
HIGH MINED118 [MINED118] Dockerfile FROM `debian:bookworm-slim` not pinned by digest: `FROM debian:book… .gcp/Dockerfile.gemini-code-builder:3
HIGH MINED118 [MINED118] Dockerfile FROM `docker.io/library/node:20-slim` not pinned by digest: `FROM d… .gcp/Dockerfile.development:2
HIGH MINED118 [MINED118] Dockerfile FROM `docker.io/library/node:20-slim` not pinned by digest: `FROM d… Dockerfile:42
HIGH MINED118 [MINED118] Dockerfile FROM `docker.io/library/node:20-slim` not pinned by digest: `FROM d… Dockerfile:2
HIGH MINED113 [MINED113] Express POST /mcp has no auth: Express route POST /mcp declared without an aut… packages/vscode-ide-companion/src/ide-s…:213
HIGH MINED113 [MINED113] Express POST /mcp has no auth: Express route POST /mcp declared without an aut… integration-tests/test-mcp-server.ts:37
HIGH MINED113 [MINED113] Express POST /users has no auth: Express route POST /users declared without an… evals/update_topic.eval.ts:200
MED SEC031 [SEC031] Catastrophic Backtracking Regex (ReDoS): Regex contains nested quantifiers like … packages/core/src/utils/agent-sanitizat…:120
MED SEC031 [SEC031] Catastrophic Backtracking Regex (ReDoS): Regex contains nested quantifiers like … packages/core/src/policy/utils.ts:21
MED ERR002 [ERR002] Empty Catch Block: Empty catch blocks hide errors. packages/cli/src/ui/utils/directoryUtil…:128
MED ERR002 [ERR002] Empty Catch Block: Empty catch blocks hide errors. packages/cli/src/ui/hooks/useLogger.ts:27
MED ERR002 [ERR002] Empty Catch Block: Empty catch blocks hide errors. packages/cli/src/ui/components/Notifica…:109
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … packages/cli/src/services/McpPromptLoad…:245
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … packages/cli/src/acp/commands/about.ts:32
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … .github/scripts/sync-maintainer-labels.…:57
MED SEC136 [SEC136] AI-typical over-broad exception handler swallowing all errors: Catch-all excepti… .gemini/skills/ci/scripts/ci.mjs:33
MED DKR017 Dockerfile installs dependencies after copying the full source tree .gcp/Dockerfile.development:21
MED DKR001 Docker final stage has no non-root USER .gcp/Dockerfile.gemini-code-builder:3
MED WEB003 Public web service has no security.txt .well-known/security.txt
MED DKR014 Dockerfile copies broad context with incomplete .dockerignore .gcp/Dockerfile.development:20
MED WEB012 Service worker is present without a web app manifest manifest.json
MED WEB015 Public web app has no Content Security Policy index.html
MED AGT013 Agent auto-approve or skip-permissions mode is easy to enable packages/cli/src/config/settingsSchema.…:236
MED AGT013 Agent auto-approve or skip-permissions mode is easy to enable packages/cli/src/config/config.ts:258
MED AGT013 Agent auto-approve or skip-permissions mode is easy to enable docs/reference/configuration.md:128
MED AGT013 Agent auto-approve or skip-permissions mode is easy to enable docs/cli/settings.md:30
MED AGT013 Agent auto-approve or skip-permissions mode is easy to enable docs/cli/cli-reference.md:58
LOW AIC003 Duplicated implementation block across source files packages/cli/src/ui/components/messages…:71
LOW AIC003 Duplicated implementation block across source files packages/cli/src/ui/components/messages…:22
LOW AIC003 Duplicated implementation block across source files packages/cli/src/ui/components/PolicyUp…:78
LOW AIC003 Duplicated implementation block across source files packages/cli/src/ui/components/OverageM…:38
LOW AIC003 Duplicated implementation block across source files packages/cli/src/ui/components/NewAgent…:46
LOW AIC003 Duplicated implementation block across source files packages/cli/src/ui/components/Backgrou…:346
LOW AIC003 Duplicated implementation block across source files packages/cli/src/nonInteractiveCliAgent…:59
LOW AIC003 Duplicated implementation block across source files packages/cli/src/config/extensions/upda…:69
LOW AIC003 Duplicated implementation block across source files packages/cli/src/commands/extensions/en…:72
LOW AIC003 Duplicated implementation block across source files packages/cli/src/acp/commands/restore.ts:1
LOW AIC003 Duplicated implementation block across source files packages/cli/src/acp/commands/memory.ts:5
LOW AIC003 Duplicated implementation block across source files packages/cli/src/acp/commands/extension…:32
LOW AIC003 Duplicated implementation block across source files packages/cli/src/acp/commands/commandRe…:5
LOW AIC003 Duplicated implementation block across source files evals/validation_fidelity_pre_existing_…:22
LOW AIC003 Duplicated implementation block across source files evals/tool_output_masking.eval.ts:6
LOW AIC003 Duplicated implementation block across source files evals/skill_extraction.eval.ts:117
LOW WEB005 robots.txt does not advertise a sitemap docs/cli/telemetry.md
LOW DKR010 Dockerfile leaves apt package indexes in the image layer .gcp/Dockerfile.gemini-code-builder:81
LOW WEB002 Public web app has no sitemap sitemap.xml
LOW DKR011 Dockerfile installs recommended OS packages .gcp/Dockerfile.gemini-code-builder:81
LOW DKR008 .dockerignore misses sensitive defaults .dockerignore
LOW WEB008 Public docs site has no llms.txt llms.txt
LOW WEB011 Public web app has no humans.txt humans.txt
INFO MINED055 [MINED055] Npm Install No Lockfile: Production image runs npm install (resolves new versi… scripts/review.sh:88
INFO MINED053 [MINED053] Placeholder Default Username: [email protected] / [email protected] / admin/admin… packages/core/src/index.ts:66
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… packages/cli/src/utils/skillUtils.ts:96
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… packages/cli/src/utils/devtoolsService.…:80
INFO MINED056 [MINED056] React Key As Index: key={index} in map() — re-renders the wrong elements on re… packages/cli/src/ui/components/Banner.t…:24
INFO MINED056 [MINED056] React Key As Index: key={index} in map() — re-renders the wrong elements on re… packages/cli/src/ui/components/Alternat…:51
INFO MINED056 [MINED056] React Key As Index: key={index} in map() — re-renders the wrong elements on re… packages/cli/examples/ask-user-dialog-d…:74
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. evals/shell-efficiency.eval.ts:11
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. evals/llm-judge.ts:65
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. evals/frugalSearch.eval.ts:43
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … integration-tests/test-mcp-server.ts:55
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … evals/tracker.eval.ts:51
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … evals/calendar-all-day.eval.ts:24
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. evals/shell-efficiency.eval.ts:20
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. evals/redundant_casts.eval.ts:64
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. evals/automated-tool-use.eval.ts:87
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … .github/scripts/backfill-need-triage.cjs:30
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … .gemini/skills/pr-address-comments/scri…:42
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … .gemini/skills/ci/scripts/ci.mjs:157
Reset to top 5 97 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `google-gemini/gemini-cli`

**Score: 70/100 (A-)**  ·  97 findings  ·  scanned 2026-06-05 05:53 UTC  ·  666,914 LOC

| Severity | Count |
|---|---|
| CRITICAL | 2 |
| HIGH | 33 |
| MEDIUM | 20 |
| LOW | 23 |

📊 [Full filterable report](https://repobility.com/scan/99c256b4-7e59-4244-ad4e-e01584eb41f3/)  ·  ![scorecard](https://repobility.com/scan/99c256b4-7e59-4244-ad4e-e01584eb41f3/report.png?v=1780638780-s2)

### Top findings

1. **CRITICAL** `MINED116` — Workflow uses `secrets.GEMINI_API_KEY` on a `pull_request` trigger
   `.github/workflows/ci.yml:443` · ✓ Repobility
2. **CRITICAL** `MINED116` — Workflow uses `secrets.GEMINI_CLI_ROBOT_GITHUB_PAT` on a `pull_request` trigger
   `.github/workflows/ci.yml:47` · ✓ Repobility
3. **HIGH** `SEC083` — JS: new RegExp() with non-literal
   `packages/core/src/policy/utils.ts:21`
4. **HIGH** `SEC083` — JS: new RegExp() with non-literal
   `packages/core/src/hooks/hookPlanner.ts:107`
5. **HIGH** `SEC083` — JS: new RegExp() with non-literal
   `packages/cli/src/services/McpPromptLoader.ts:196`

---

**Security note**: this issue is public. If any flagged finding is a real, exploitable vulnerability, please redirect to your `SECURITY.md` policy or open a [private security advisory](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing-information-about-vulnerabilities/privately-reporting-a-security-vulnerability) instead. We're happy to close this and re-submit privately.

---

_Filed automatically. Close this issue if not useful — we won't refile. Full report: https://repobility.com/scan/99c256b4-7e59-4244-ad4e-e01584eb41f3/_
Already filed
This repo publishes a SECURITY.md policy and the scan contains 20 Critical/High security finding(s). Public issue filing would violate coordinated disclosure. Submit privately via the project's security reporting channel.
Megaproject â high spam risk
Could not determine 'google-gemini/gemini-cli' star count (GitHub API rate-limited or unreachable). When in doubt about repo size, prefer opening a focused PR or a discussion rather than an issue.

The button opens GitHubâs new-issue page in a new tab. You will see the title + body pre-filled â review, edit if you want, then click GitHubâs "Submit new issue" button. Repobility never posts anything on your behalf.

For real security findings on big repos: use the project's SECURITY.md or private advisory flow instead of a public issue.