Any authenticated user (no privileges needed) can read the password hash, hash algorithm, salt, rands and primary email of the owner of any public repository that has a latest combined commit status. /repo/ serializes the internal CommitStatus → Repository → user_model.User object graph directly, without a DTO or json exclusion.
Root cause: the web repo response embeds the internal commit-status model and JSON-encodes the full object graph.
routers/web/repo/repo.go:549 puts the *git_model.CommitStatus into repo_service.WebSearchRepository.LatestCommitStatus (services/repository/repository.go:39), then ctx.JSON() at :554 encodes it.
CommitStatus.Repo (models/git/commit_status.go:42) has no json:"-" , and commitstatus_service sets it to the full repo (services/repository/commitstatus/commitstatus.go:196).
Repository.Owner is loaded as a complete user row (models/repo/repo_list.go, LoadOwners), and user_model.User has no JSON tags on Email/Passwd/PasswdHashAlgo/Salt/Rands (models/user/user.go:108-125).
CommitStatusesApplyDoerPermission (models/git/commit_status.go:554) only blanks the Actions TargetURL; it does not strip Repo or Owner.
Result: the response contains latest_commit_status.Repo.Owner.{Passwd,PasswdHashAlgo,Salt,Rands,Email} plus the whole internal Repository object.
Fix: build a minimal DTO for results, or add json:"-" to CommitStatus.Repo/Owner and add a test asserting the JSON never contains Passwd/Salt/Rands/Email.
Tested on a fresh Gitea v28.3.0 (commit 4f5a3e1 ), default settings.
Any signed-in user can harvest Argon2id password hashes, salts, hash parameters and primary emails for every owner of a public repository with a commit status — offline cracking material and account enumeration. The same response also leaks the full internal repository object.
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
