Summary
Gitea: REST API exposes organization membership of private organizations to public
Advisory details
Summary
The endpoint "/orgs/{org}/public_members/{username}" + GET exposes organization membership of public members in a private organization.
PoC
- Spin up the nightly container of Gitea.
- Perform the default installation.
- Register a new user (let's call this user "user1").
- Create a new organization with "private" visibility. We will refer to this organization as "user1org".
- Make the user "user1" inside the organization visible.
- Log out and register a new user ("user2").
- Create an access token for "user2" with full access to the API.
- Use the endpoint "/orgs/{org}/public_members/{username}" + GET with the correct username of "user1", organization name, and access token of "user2" to query whether "user1" is a member of the organization. The following curl command demonstrates the usage:
curl -X 'GET'
'http://localhost:4700/api/v1/orgs/user1org/public_members/user1'
-H 'accept: application/json'
-H 'authorization: token
- You will receive status code 204, which leaks the organization membership.
Impact
The vulnerability discloses organization membership. An information that is not accessible via the web app (the organization is hidden, and therefore, the organization membership on the user's profile page is also hidden).
References
- https://github.com/advisories/GHSA-jr5x-6h83-wrxf
- https://github.com/go-gitea/gitea/security/advisories/GHSA-jr5x-6h83-wrxf
- https://github.com/go-gitea/gitea/pull/38145
- https://github.com/go-gitea/gitea/commit/685b62c60fc595e3612a85f0895471876db56292
- https://github.com/go-gitea/gitea/releases/tag/v1.27.0
Related vulnerabilities
All Supply chain →- HIGHCVE-2026-55485
piccolo-admin has a privilege escalation issue - admin to superuser via session-token disclosure in GET /api/tables/sessions/.
- MEDIUMGHSA-mf8r-wm2w-f8c5#phpmyfaq/phpmyfaq
phpMyFAQ public FAQ APIs expose inactive FAQ content
- MEDIUMGHSA-mf8r-wm2w-f8c5#thorsten/phpmyfaq
phpMyFAQ public FAQ APIs expose inactive FAQ content
- MEDIUMCVE-2026-71433
LangGraph: Namespace prefix matching crosses segment boundaries in Postgres and SQLite stores
- MEDIUMCVE-2026-57897
Gitea: Cross-Repo Information Disclosure via Org-Level Actions Run/Job APIs
- MEDIUMCVE-2026-58427
Gitea: Private org member list leaked via /members API endpoint — incomplete fix for PR #38145