← Back to scan
File as GitHub Issue repo: charmbracelet/crush

Push this scan report to charmbracelet/crush

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

innerHTML XSS — template literal with server-supplied data

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 generic-api-key Detected a Generic API Key, potentially exposing access to various services and sensitive… internal/event/event.go:18
HIGH MINED033 [MINED033] Go Recover Without Log: defer func() { recover() }() that silently swallows pa… internal/shell/run.go:57
HIGH MINED033 [MINED033] Go Recover Without Log: defer func() { recover() }() that silently swallows pa… internal/server/recover.go:18
HIGH MINED033 [MINED033] Go Recover Without Log: defer func() { recover() }() that silently swallows pa… internal/log/log.go:67
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… internal/cmd/stats/index.js:346
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… internal/cmd/login.go:112
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… internal/client/client.go:35
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… internal/agent/tools/search.go:120
HIGH SEC093 [SEC093] Go: exec.Command with non-literal: exec.Command(<var>) — variable command name a… internal/ui/util/util.go:94
HIGH SEC093 [SEC093] Go: exec.Command with non-literal: exec.Command(<var>) — variable command name a… internal/config/docker_mcp.go:12
HIGH SEC093 [SEC093] Go: exec.Command with non-literal: exec.Command(<var>) — variable command name a… internal/agent/tools/rg.go:41
HIGH MINED016 [MINED016] Go Error Ignored: _, err := fn() with err not checked. Go anti-pattern. internal/agent/tools/tools.go:77
HIGH MINED016 [MINED016] Go Error Ignored: _, err := fn() with err not checked. Go anti-pattern. internal/agent/tools/sourcegraph.go:162
HIGH MINED016 [MINED016] Go Error Ignored: _, err := fn() with err not checked. Go anti-pattern. internal/agent/prompt/prompt.go:227
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… internal/db/files.sql.go:62
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… internal/db/connect_ncruces.go:22
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… internal/agent/prompt/prompt.go:251
HIGH MINED115 Action `charmbracelet/meta/.github/workflows/goreleaser.yml` pinned to mutable ref `@main` .github/workflows/release.yml:16
HIGH MINED115 Action `charmbracelet/meta/.github/workflows/nightly.yml` pinned to mutable ref `@main` .github/workflows/nightly.yml:29
HIGH MINED115 Action `charmbracelet/meta/.github/workflows/lint-sync.yml` pinned to mutable ref `@main` .github/workflows/lint-sync.yml:14
HIGH MINED115 Action `charmbracelet/meta/.github/workflows/lint.yml` pinned to mutable ref `@main` .github/workflows/lint.yml:9
HIGH GO-2026-5032 golang.org/x/image: GO-2026-5032 go.mod
HIGH GO-2026-5031 golang.org/x/image: GO-2026-5031 go.mod
HIGH GO-2026-4962 golang.org/x/image: GO-2026-4962 go.mod
HIGH GO-2026-4961 golang.org/x/image: GO-2026-4961 go.mod
MED SEC091 [SEC091] Go: net/http server without timeouts: HTTP server without ReadHeaderTimeout/Read… main.go:28
MED SEC091 [SEC091] Go: net/http server without timeouts: HTTP server without ReadHeaderTimeout/Read… internal/server/server.go:183
MED SEC112 [SEC112] Go html/template bypass — text/template used for HTML output, or template.HTML o… internal/ui/logo/logo.go:90
MED SEC112 [SEC112] Go html/template bypass — text/template used for HTML output, or template.HTML o… internal/cmd/stats.go:371
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … internal/db/files.sql.go:62
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … internal/db/connect_ncruces.go:22
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … internal/agent/prompt/prompt.go:251
LOW SEC132 [SEC132] String concat where the language has interpolation (AI style drift): String buil… internal/agent/tools/fetch.go:178
LOW ERR003 [ERR003] Ignored Error (Go): Ignoring error return values. internal/cmd/login.go:55
LOW ERR003 [ERR003] Ignored Error (Go): Ignoring error return values. internal/agent/tools/web_fetch.go:62
LOW ERR003 [ERR003] Ignored Error (Go): Ignoring error return values. internal/agent/tools/diagnostics.go:60
LOW GHSA-q7pp-wcgr-pffx github.com/disintegration/imaging: GHSA-q7pp-wcgr-pffx go.mod
LOW AIC003 Duplicated implementation block across source files internal/workspace/workspace.go:24
LOW AIC003 Duplicated implementation block across source files internal/workspace/client_workspace.go:736
LOW AIC003 Duplicated implementation block across source files internal/workspace/client_workspace.go:460
LOW AIC003 Duplicated implementation block across source files internal/workspace/client_workspace.go:294
LOW AIC003 Duplicated implementation block across source files internal/workspace/app_workspace.go:251
LOW AIC003 Duplicated implementation block across source files internal/ui/dialog/sessions_item.go:184
LOW AIC003 Duplicated implementation block across source files internal/ui/dialog/sessions.go:250
LOW AIC003 Duplicated implementation block across source files internal/ui/dialog/reasoning.go:21
LOW AIC003 Duplicated implementation block across source files internal/ui/chat/search.go:80
LOW AIC003 Duplicated implementation block across source files internal/ui/chat/references.go:33
LOW AIC003 Duplicated implementation block across source files internal/ui/chat/mcp.go:32
LOW AIC003 Duplicated implementation block across source files internal/ui/chat/lsp_restart.go:32
LOW AIC003 Duplicated implementation block across source files internal/ui/chat/file.go:237
LOW AIC003 Duplicated implementation block across source files internal/proto/proto.go:162
LOW AIC003 Duplicated implementation block across source files internal/proto/proto.go:124
LOW AIC003 Duplicated implementation block across source files internal/proto/permission.go:5
LOW AIC003 Duplicated implementation block across source files internal/proto/message.go:380
LOW AIC003 Duplicated implementation block across source files internal/proto/message.go:61
LOW AIC003 Duplicated implementation block across source files internal/proto/mcp.go:67
LOW AIC003 Duplicated implementation block across source files internal/db/stats.sql.go:89
LOW AIC003 Duplicated implementation block across source files internal/db/sessions.sql.go:148
LOW AIC003 Duplicated implementation block across source files internal/db/messages.sql.go:120
LOW AIC003 Duplicated implementation block across source files internal/cmd/run.go:152
LOW AIC003 Duplicated implementation block across source files internal/cmd/logout.go:30
LOW AIC003 Duplicated implementation block across source files internal/agent/tools/write.go:1
LOW AIC003 Duplicated implementation block across source files internal/agent/tools/multiedit.go:1
LOW AIC003 Duplicated implementation block across source files internal/agent/tools/fetch.go:88
LOW WEB005 robots.txt does not advertise a sitemap internal/agent/testdata/TestCoderAgent/…
INFO MINED071 [MINED071] Go Panic Call: panic() crashes the process. Should return error in most cases. internal/config/hyper.go:43
INFO MINED071 [MINED071] Go Panic Call: panic() crashes the process. Should return error in most cases. internal/config/catwalk.go:38
INFO MINED071 [MINED071] Go Panic Call: panic() crashes the process. Should return error in most cases. internal/agent/tools/tools.go:93
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… internal/config/provider.go:65
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… internal/agent/tools/fetch.go:71
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… internal/agent/tools/download.go:77
INFO MINED060 [MINED060] Go Context No Cancel: context.Background() at request handler boundary leaks g… internal/backend/testing.go:24
INFO MINED060 [MINED060] Go Context No Cancel: context.Background() at request handler boundary leaks g… internal/app/testing.go:68
INFO MINED060 [MINED060] Go Context No Cancel: context.Background() at request handler boundary leaks g… internal/agent/prompts.go:41
Reset to top 5 74 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `charmbracelet/crush`

**Score: 84/100 (B+)**  ·  74 findings  ·  scanned 2026-06-05 22:09 UTC  ·  109,814 LOC

| Severity | Count |
|---|---|
| CRITICAL | 1 |
| HIGH | 24 |
| MEDIUM | 7 |
| LOW | 33 |

📊 [Full filterable report](https://repobility.com/scan/f1ea3e2b-21a1-42fd-a8fc-2b9cc16cee43/)  ·  ![scorecard](https://repobility.com/scan/f1ea3e2b-21a1-42fd-a8fc-2b9cc16cee43/report.png?v=1780697364-s2)

### Top findings

1. **CRITICAL** `generic-api-key` — Detected a Generic API Key, potentially exposing access to various services and sensitive 
   `internal/event/event.go:18`
2. **HIGH** `MINED033` — Go Recover Without Log
   `internal/shell/run.go:57` · CWE-755 · ✓ Repobility
3. **HIGH** `MINED033` — Go Recover Without Log
   `internal/server/recover.go:18` · CWE-755 · ✓ Repobility
4. **HIGH** `MINED033` — Go Recover Without Log
   `internal/log/log.go:67` · CWE-755 · ✓ Repobility
5. **HIGH** `SEC040` — innerHTML XSS — template literal with server-supplied data
   `internal/cmd/stats/index.js:346` · CWE-79 · A03:2021 Injection (XSS)

---

**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/f1ea3e2b-21a1-42fd-a8fc-2b9cc16cee43/_
Megaproject â high spam risk
Could not determine 'charmbracelet/crush' 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.