Borehole · Project · free tier
go-gitea/gitea
Free reading: not for reliance
9e7b302 · 21,645 commits · 6,338 files
Read 2026-11-08

go-gitea/gitea: technical due diligence, read from its repository

What Borehole read in go-gitea/gitea's code and history at 9e7b302: its licence, security advisories, releases, review practice, tests, dependencies and operations. Every finding cites the file and line it rests on. The full report also covers the team and asks the questions the code cannot answer.

DimensionRating
Architecture & Codebase — including AI provenancestrong
Engineering Process & SDLC Maturitystrong
Product & Engineering Maturityadequate
Security & Reliability Postureadequate
Observability & Operationsstrong
Fit with the Acquirernot assessable

What the repository says

  • Releases are cut from another branch than the one surveyed
  • AGENTS.md:7: states a policy on AI-generated contributions

Architecture & Codebase — including AI provenance

strong
01.6

routers/api/v1/repo/action.go is 2,197 lines, 25× this codebase's median file

adequate

The median source file here is 87 lines. 23 files exceed 1,000 lines, the largest being 2,197. Size is not a defect on its own — some problems genuinely live in one place — but these are where merge conflicts, review fatigue and single-owner knowledge concentrate, and they are the first thing that slows an inheriting engineer down.

Evidence
routers/api/v1/repo/action.go:1 — 2,197 lines (25× median)
routers/api/v1/shared/project.go:1 — 2,114 lines (24× median)
routers/api/v1/api.go:1 — 1,949 lines (22× median)
routers/web/web.go:1 — 1,824 lines (20× median)
services/gitdiff/gitdiff.go:1 — 1,722 lines (19× median)

Engineering Process & SDLC Maturity

strong

No finding.

Product & Engineering Maturity

adequate
04.3

105 direct dependencies in a single manifest

adequate

go.mod declares 105 direct dependencies. Each one is a maintenance obligation, a supply-chain surface and a potential licence question that transfers with the asset. The count says nothing about whether any given dependency was a good choice; it says how many such choices a buyer inherits.

Evidence
go.mod — 105 declared
package.json — 59 declared
04.62

Releases are cut from another branch than the one surveyed

adequate

The newest release, v1.27.3, is not on the branch this survey read; the newest release on it is v1.10.5. The shipped product may differ from what this report describes. Survey the release branch too.

Evidence
tag v1.27.3

Security & Reliability Posture

adequate
05.5

3 credential-shaped strings exist in the history

adequate

Matches for JWT were committed at some point across 20,000 commits examined (the scan stopped at its limit, so older history was not read). The files that held them are no longer in the working tree — but removal from a file is not removal from the history, and the history is what transfers with the asset. What matters is whether each was rotated after it was committed. The code cannot tell whether any of them is live, and that decides whether this matters: none sits in production configuration, and none is in a format its provider keeps for live keys. Is any of these live? Show that each was rotated after it was committed, and when. 5 other matchs set aside: expired tokens, licence tokens a vendor verifies with a public key, or placeholder text where a key would go. None grants access to anything.

Evidence
3 cited: JWT pattern added here
05.6

1 Dockerfile runs the application as root

adequate

No USER instruction switches away from root, so the process runs with full privileges inside the container. It is a one-line fix and an ordinary expectation, which is why its absence is worth asking about: it usually says more about whether anyone has reviewed the deployment than about this container specifically.

Evidence
Dockerfile — runs as root
05.20

54 SQL statements built from strings

adequate

54 places in product code build SQL by formatting or joining strings rather than passing parameters. 2 of them put a value into the string; in the rest, what the code shows going in is a table or column name, a constant, or something the line does not show. Ask whether any value reaches these strings, rather than a parameter.

Evidence
models/actions/run_job_summary.go:154 — SQL built from a string
models/actions/run_job_summary.go:163 — SQL built from a string
modelmigration/base/db.go:92 — SQL built from a string
05.48

35 places insert HTML from a variable without sanitising it

adequate

35 places set HTML from a value that is neither a literal nor passed through a sanitiser. Where the value can come from a user, that is stored cross-site scripting, and it is the first thing a buyer's security review looks for in a frontend.

Evidence
web_src/js/components/ContextPopup.vue:43 — HTML from a variable
web_src/js/components/DiffFileTreeItem.vue:33 — HTML from a variable
web_src/js/components/DiffFileTreeItem.vue:48 — HTML from a variable
05.65

197 advisories against this project in the last 24 months, 74 high or critical, 1 on CISA's known-exploited list, 64 may affect the surveyed commit

adequate

1 of them is on CISA's known-exploited list: check first whether the release you run has the fix. The newest was published on 2026-11-01. 64 may affect the surveyed version, placed from version numbers. Check each against the release you run. GO-2026-6433 (critical), GHSA-m78w-jjjx-gp8r (high), GHSA-wwmh-7r9x-fg49 (moderate) and 58 more are fixed in the surveyed commit; which release carries them cannot be told from this history, which does not place the release users run. Answer lives in: the version you run. The record is incomplete: NVD: 8 records name gitea with nothing tying them to this repository (CVE-2019-10330, CVE-2022-46685, CVE-2026-104976, …).

Evidence
2026-07-28: GO-2026-6433 (critical; on CISA's Known Exploited list), fixed in 1.27.1: Gitea: Remote Code Execution via diffpatch Git Hook Installation in gitea.dev
2026-11-01: CVE-2026-112887 (moderate), fixed in 4f5a3e13e5f3aca85d830e3a9024c893b0bbf1e1: Gitea Actions task token private repository enumeration
2026-11-01: CVE-2026-113429 (high), fixed in 4f5a3e13e5f3aca85d830e3a9024c893b0bbf1e1: Gitea stored XSS through legacy Actions artifact Content-Encoding
2026-11-01: CVE-2026-114199 (moderate), fixed in 4f5a3e13e5f3aca85d830e3a9024c893b0bbf1e1: Gitea contribution heatmap private activity disclosure to public-only tokens
2026-11-01: CVE-2026-116289 (moderate), fixed in 4f5a3e13e5f3aca85d830e3a9024c893b0bbf1e1: Gitea public-only token bypass through Actions runner registration

Observability & Operations

strong
06.9

No error reporter is wired in

adequate

Nothing in the service initialises an error reporter (Sentry, Rollbar, Bugsnag, Honeybadger or an APM agent). An exception in production reaches a person only if someone is reading the logs, which usually means a customer reports it first.

Evidence
no error reporter initialised

Fit with the Acquirer

not assessable

Not rated: structurally not assessable from a repository.

Read more, or read your own

The full report on go-gitea/gitea: every dimension, the questions for the room, and the audit log.

Survey a repository: free on public repositories. Private code is read on your own machine by a collector whose source you can read first.