← Back to scan
File as GitHub Issue repo: go-gitea/gitea

Push this scan report to go-gitea/gitea

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

CORS permissive Access-Control-Allow-Origin: *

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.GITHUB_READ_TOKEN` on a `pull_request` trigger: This wo… .github/workflows/pull-db-tests.yml:174
CRIT MINED116 [MINED116] Workflow uses `secrets.GITHUB_READ_TOKEN` on a `pull_request` trigger: This wo… .github/workflows/pull-db-tests.yml:167
HIGH SEC027 [SEC027] XML External Entity (XXE) — Node.js xml parsers: Node.js XML parsers can expand … web_src/js/utils.ts:174
HIGH SEC040 [SEC040] innerHTML XSS — template literal with server-supplied data: Setting .innerHTML w… web_src/js/components/ActionRunView.ts:83
HIGH SEC100 [SEC100] CORS permissive Access-Control-Allow-Origin: *: Permissive CORS policy (`*` orig… routers/web/webfinger.go:116
HIGH SEC030 [SEC030] Open Redirect — user-controlled redirect target: Redirect target is taken direct… routers/web/shared/user/block.go:72
HIGH SEC093 [SEC093] Go: exec.Command with non-literal: exec.Command(<var>) — variable command name a… tools/lint-go-all.go:67
HIGH SEC093 [SEC093] Go: exec.Command with non-literal: exec.Command(<var>) — variable command name a… services/mailer/sender/sendmail.go:50
HIGH SEC093 [SEC093] Go: exec.Command with non-literal: exec.Command(<var>) — variable command name a… modules/process/manager_exec.go:52
HIGH SEC088 [SEC088] Go: TLS InsecureSkipVerify=true: tls.Config{InsecureSkipVerify:true} disables ce… modules/private/internal.go:60
HIGH SEC032 [SEC032] Unrestricted File Upload — no extension/MIME validation: File upload accepts the… modules/log/event_writer_file.go:34
HIGH MINED033 [MINED033] Go Recover Without Log: defer func() { recover() }() that silently swallows pa… modules/indexer/issues/indexer.go:87
HIGH MINED033 [MINED033] Go Recover Without Log: defer func() { recover() }() that silently swallows pa… modules/indexer/code/indexer.go:154
HIGH MINED033 [MINED033] Go Recover Without Log: defer func() { recover() }() that silently swallows pa… modules/graceful/manager.go:100
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … modules/indexer/internal/bleve/batch.go:39
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … modules/globallock/redis_locker.go:97
HIGH SEC128 [SEC128] Async function without await — fire-and-forget Promise (AI mistake): Async call … modules/globallock/memory_locker.go:27
HIGH SEC035 [SEC035] Unbounded Resource Allocation — DoS risk: Allocating resources (buffers, recursi… modules/git/repo_index.go:113
HIGH MINED014 [MINED014] Disabled Tls Verify: verify=False in requests, rejectUnauthorized:false in nod… modules/private/internal.go:60
HIGH MINED014 [MINED014] Disabled Tls Verify: verify=False in requests, rejectUnauthorized:false in nod… modules/git/repo.go:125
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… models/db/context.go:185
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… models/db/consistency.go:29
HIGH SEC085 [SEC085] JS: child_process.exec with non-literal: child_process.exec with user-derived in… models/auth/session.go:89
HIGH MINED016 [MINED016] Go Error Ignored: _, err := fn() with err not checked. Go anti-pattern. models/actions/run.go:246
HIGH MINED016 [MINED016] Go Error Ignored: _, err := fn() with err not checked. Go anti-pattern. models/actions/artifact.go:119
HIGH MINED016 [MINED016] Go Error Ignored: _, err := fn() with err not checked. Go anti-pattern. cmd/docs.go:66
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). models/avatars/avatar.go:8
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). models/auth/twofactor.go:8
HIGH MINED004 [MINED004] Weak Crypto: MD5/SHA1/DES/RC4 used for security context (not just checksums). cmd/admin_auth_smtp.go:28
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… models/avatars/avatar.go:113
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… models/actions/run.go:71
HIGH SEC029 [SEC029] Server-Side Request Forgery (SSRF) — outbound HTTP from user input: Outbound HTT… cmd/admin_auth_oauth.go:44
HIGH MINED126 [MINED126] Workflow container/services image `mcr.microsoft.com/mssql/server:2019-latest`… .github/workflows/pull-db-tests.yml:232
HIGH MINED126 [MINED126] Workflow container/services image `docker.elastic.co/elasticsearch/elasticsear… .github/workflows/pull-db-tests.yml:194
HIGH MINED126 [MINED126] Workflow container/services image `bitnamilegacy/mysql:8.4` unpinned: `contain… .github/workflows/pull-db-tests.yml:185
HIGH MINED126 [MINED126] Workflow container/services image `bitnamilegacy/minio:2025.7.23` unpinned: `c… .github/workflows/pull-db-tests.yml:143
HIGH MINED126 [MINED126] Workflow container/services image `getmeili/meilisearch:v1` unpinned: `contain… .github/workflows/pull-db-tests.yml:128
HIGH MINED126 [MINED126] Workflow container/services image `docker.elastic.co/elasticsearch/elasticsear… .github/workflows/pull-db-tests.yml:118
HIGH MINED126 [MINED126] Workflow container/services image `bitnamilegacy/minio:2025.7.23` unpinned: `c… .github/workflows/pull-db-tests.yml:74
HIGH MINED126 [MINED126] Workflow container/services image `postgres:14` unpinned: `container/services … .github/workflows/pull-db-tests.yml:60
HIGH MINED126 [MINED126] Workflow container/services image `bitnamilegacy/minio:2025.7.23` unpinned: `c… .github/workflows/pull-db-tests.yml:38
HIGH MINED126 [MINED126] Workflow container/services image `postgres:14` unpinned: `container/services … .github/workflows/pull-db-tests.yml:24
HIGH MINED118 [MINED118] Dockerfile FROM `docker.io/library/alpine:3.23` not pinned by digest: `FROM do… Dockerfile:46
HIGH MINED118 [MINED118] Dockerfile FROM `docker.io/library/golang:1.26-alpine3.23` not pinned by diges… Dockerfile:12
HIGH MINED118 [MINED118] Dockerfile FROM `docker.io/library/alpine:3.23` not pinned by digest: `FROM do… Dockerfile.rootless:41
HIGH MINED118 [MINED118] Dockerfile FROM `docker.io/library/golang:1.26-alpine3.23` not pinned by diges… Dockerfile.rootless:12
HIGH SEC013 [SEC013] Path Traversal — User Input in File Path: User-controlled input used in file pat… modules/gitrepo/gitrepo.go:56
MED SEC046 [SEC046] Client-side open redirect — window.location = server-supplied URL: Assigning win… web_src/js/features/repo-issue-list.ts:112
MED SEC046 [SEC046] Client-side open redirect — window.location = server-supplied URL: Assigning win… web_src/js/features/install.ts:98
MED SEC046 [SEC046] Client-side open redirect — window.location = server-supplied URL: Assigning win… web_src/js/features/common-button.ts:73
MED SEC041 [SEC041] Tabnabbing — target="_blank" without rel="noopener noreferrer": <a target="_blan… web_src/js/utils/url.ts:57
MED SEC041 [SEC041] Tabnabbing — target="_blank" without rel="noopener noreferrer": <a target="_blan… web_src/js/markup/render-iframe.ts:27
MED SEC041 [SEC041] Tabnabbing — target="_blank" without rel="noopener noreferrer": <a target="_blan… web_src/js/external-render-helper.ts:11
MED SEC091 [SEC091] Go: net/http server without timeouts: HTTP server without ReadHeaderTimeout/Read… modules/graceful/server_http.go:19
MED SEC014 [SEC014] SSL Verification Disabled: SSL certificate verification is disabled, allowing ma… modules/git/repo.go:125
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … models/auth/session.go:89
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … models/actions/variable.go:179
MED SEC045 [SEC045] eval()/exec() on stored or user-supplied data: eval() and exec() on data — even … models/actions/tasks_version.go:55
MED SEC107 [SEC107] Weak TLS version requested (TLSv1.0, TLSv1.1, SSLv3, SSLv2): TLS 1.0 and 1.1 wer… cmd/web_https.go:21
MED SEC112 [SEC112] Go html/template bypass — text/template used for HTML output, or template.HTML o… modules/charset/escape.go:37
MED SEC112 [SEC112] Go html/template bypass — text/template used for HTML output, or template.HTML o… modules/auth/password/password.go:135
MED SEC112 [SEC112] Go html/template bypass — text/template used for HTML output, or template.HTML o… cmd/docs.go:66
MED AUC001 [AUC001] No Repobility access matrix policy found: The repository uses web/API frameworks…
MED DKR018 Database dump or local database file is included in Docker build context .dockerignore
MED DKR001 Docker final stage has no non-root USER Dockerfile:47
MED AIC001 Parallel implementation file sits beside a canonical file routers/web/repo/issue_new.go:1
MED AIC001 Parallel implementation file sits beside a canonical file models/user/user_update.go:1
MED AIC001 Parallel implementation file sits beside a canonical file models/issues/issue_update.go:1
MED DKR014 Dockerfile copies broad context with incomplete .dockerignore Dockerfile.rootless:28
MED DKR014 Dockerfile copies broad context with incomplete .dockerignore Dockerfile.rootless:8
MED DKR014 Dockerfile copies broad context with incomplete .dockerignore Dockerfile:29
MED DKR014 Dockerfile copies broad context with incomplete .dockerignore Dockerfile:8
MED AUC002 [AUC002] Low visible authorization coverage in route inventory: Only 2.8% of discovered r…
MED WEB015 Public web app has no Content Security Policy index.html
MED AUC009 [AUC009] Sensitive function route lacks elevated authorization evidence: A route appears … modules/web/middleware/cookie.go:38
MED AUC009 [AUC009] Sensitive function route lacks elevated authorization evidence: A route appears … modules/lfs/transferadapter.go:57
MED AUC009 [AUC009] Sensitive function route lacks elevated authorization evidence: A route appears … modules/lfs/transferadapter.go:54
MED AUC009 [AUC009] Sensitive function route lacks elevated authorization evidence: A route appears … modules/httplib/serve.go:166
LOW SEC132 [SEC132] String concat where the language has interpolation (AI style drift): String buil… modules/setting/markup.go:253
LOW SEC132 [SEC132] String concat where the language has interpolation (AI style drift): String buil… modules/highlight/lexerdetect.go:92
LOW ERR003 [ERR003] Ignored Error (Go): Ignoring error return values. cmd/doctor.go:153
LOW ERR003 [ERR003] Ignored Error (Go): Ignoring error return values. cmd/admin_user_create.go:134
LOW ERR003 [ERR003] Ignored Error (Go): Ignoring error return values. cmd/actions.go:52
LOW AIC003 Duplicated implementation block across source files modules/git/pipeline/revlist.go:26
LOW AIC003 Duplicated implementation block across source files modules/git/commit_info_nogogit.go:47
LOW AIC003 Duplicated implementation block across source files models/packages/package_version.go:197
LOW AIC003 Duplicated implementation block across source files models/issues/issue_list.go:133
LOW AIC003 Duplicated implementation block across source files cmd/migrate_storage.go:195
LOW WEB014 security.txt is missing an Expires field public/.well-known/security.txt
LOW WEB002 Public web app has no sitemap sitemap.xml
LOW DKR008 .dockerignore misses sensitive defaults .dockerignore
LOW AIC007 Generated build artifact directory is present at repository root build:1
LOW WEB008 Public docs site has no llms.txt llms.txt
LOW AIC002 Source file name looks like an AI patch artifact web_src/js/features/repo-new.ts:1
LOW AIC002 Source file name looks like an AI patch artifact services/packages/package_update.go:1
LOW WEB011 Public web app has no humans.txt humans.txt
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. web_src/js/features/repo-wiki.ts:60
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. web_src/js/features/repo-diff.ts:61
INFO MINED054 [MINED054] Ts As Any: Casting to any (as any) bypasses type checking entirely. web_src/js/features/comp/EditorUpload.ts:24
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. web_src/js/features/repo-home.ts:92
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. web_src/js/features/dropzone.ts:91
INFO MINED052 [MINED052] Ts Any Typed: : any used as type annotation. Defeats TypeScript type safety. web_src/js/features/admin/config.ts:92
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … tools/generate-images.ts:59
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … tools/generate-codemirror-languages.ts:95
INFO MINED044 [MINED044] Js Console Log Prod: console.log left in code. Should be replaced with logger … tools/ci-tools.ts:59
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … web_src/js/features/admin/config.ts:96
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … web_src/js/external-render-frontend.ts:45
INFO MINED045 [MINED045] Ts Non Null Assertion: x! asserts not null - bypasses null checks - TypeError … tailwind.config.ts:29
INFO MINED057 [MINED057] Todo Bomb: Code path with a TODO/FIXME/HACK comment that gates correctness — l… routers/web/auth/webauthn.go:158
INFO MINED057 [MINED057] Todo Bomb: Code path with a TODO/FIXME/HACK comment that gates correctness — l… modules/indexer/issues/internal/model.go:98
INFO MINED071 [MINED071] Go Panic Call: panic() crashes the process. Should return error in most cases. models/db/conn.go:69
INFO MINED071 [MINED071] Go Panic Call: panic() crashes the process. Should return error in most cases. models/actions/run_job_list.go:131
INFO MINED071 [MINED071] Go Panic Call: panic() crashes the process. Should return error in most cases. cmd/helper.go:99
INFO MINED060 [MINED060] Go Context No Cancel: context.Background() at request handler boundary leaks g… cmd/migrate.go:37
INFO MINED060 [MINED060] Go Context No Cancel: context.Background() at request handler boundary leaks g… cmd/helper.go:76
INFO MINED060 [MINED060] Go Context No Cancel: context.Background() at request handler boundary leaks g… cmd/doctor.go:134
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… modules/httplib/url.go:103
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… modules/git/remote.go:81
INFO MINED043 [MINED043] Http Not Https: Hardcoded http:// (not localhost) for endpoints that handle cr… cmd/admin_auth_oauth.go:202
Reset to top 5 119 findings available (after auto-suppression of test files + won't-fix)

Issue body (markdown)

## Code-quality scan: `go-gitea/gitea`

**Score: 79/100 (A)**  ·  119 findings  ·  scanned 2026-06-05 10:17 UTC  ·  436,619 LOC

| Severity | Count |
|---|---|
| CRITICAL | 2 |
| HIGH | 45 |
| MEDIUM | 31 |
| LOW | 18 |

📊 [Full filterable report](https://repobility.com/scan/9ddf74f5-e0e0-4f6b-a0b9-76c2b098dce1/)  ·  ![scorecard](https://repobility.com/scan/9ddf74f5-e0e0-4f6b-a0b9-76c2b098dce1/report.png?v=1780654621-s2)

### Top findings

1. **CRITICAL** `MINED116` — Workflow uses `secrets.GITHUB_READ_TOKEN` on a `pull_request` trigger
   `.github/workflows/pull-db-tests.yml:174` · ✓ Repobility
2. **CRITICAL** `MINED116` — Workflow uses `secrets.GITHUB_READ_TOKEN` on a `pull_request` trigger
   `.github/workflows/pull-db-tests.yml:167` · ✓ Repobility
3. **HIGH** `SEC027` — XML External Entity (XXE) — Node.js xml parsers
   `web_src/js/utils.ts:174` · A05:2021 Security Misconfiguration (XXE)
4. **HIGH** `SEC040` — innerHTML XSS — template literal with server-supplied data
   `web_src/js/components/ActionRunView.ts:83` · CWE-79 · A03:2021 Injection (XSS)
5. **HIGH** `SEC100` — CORS permissive Access-Control-Allow-Origin: *
   `routers/web/webfinger.go:116` · A05:2021 Security Misconfiguration

---

**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/9ddf74f5-e0e0-4f6b-a0b9-76c2b098dce1/_
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 'go-gitea/gitea' 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.