Executive brief
Gogs is an open-source self-hosted Git service used by organizations to manage source code. A security flaw allows anyone on the network to view internal team structures, including team names, descriptions, and permission levels, without logging in. This could allow unauthorized individuals to map out a company's internal organization and identify high-value targets for further attacks.
Technical details
An unauthenticated information disclosure vulnerability exists in Gogs prior to version 0.14.3 due to missing authentication middleware on the organization teams API endpoint. Specifically, the route group for 'GET /api/v1/orgs/:orgname/teams' in 'internal/route/api/v1/api.go' lacks the 'reqToken()' middleware, and the 'ListTeams' handler in 'org_team.go' does not perform any authorization checks. An attacker can exploit this by sending a simple GET request to the affected endpoint to retrieve a JSON list of all teams within an organization, including their IDs, names, descriptions, and permission levels (e.g., read, write, admin, owner). This issue is resolved in version 0.14.3.
Affected products
- Gogs Gogs < 0.14.3
Timeline
- 2026-06-19: advisory: GitHub Security Advisory published
- 2026-06-24: disclosed: CVE published to NVD