Technical impact
The OAuth2 /login/oauth/userinfo endpoint incorrectly parsed the Authorization header, treating public‑only tokens as having no scope. As a result, the groups claim returned the bearer’s private organizations, teams, and memberships, exposing identifiers of private group structures. The disclosed data is limited to organizational and team names; no repository content is exposed. This flaw is a classic information‑disclosure vulnerability (CWE‑200) compounded by a misuse of authorized credentials (CWE‑863).
Affected Systems
The issue affects the Gitea web‑application, specifically versions that do not incorporate the fix introduced in the 28.3.0 release. Users running earlier Gitea builds and exposing the /login/oauth/userinfo endpoint are susceptible. No particular sub‑module or plugin is singled out; the vulnerability exists wherever the OAuth2 userinfo endpoint is enabled.
Risk and Exploitability
The attack requires possession of a public‑only OAuth2 token or a public‑only personal access token and the ability to send an HTTP request to /login/oauth/userinfo, which is typically reachable over the public Internet. An attacker can craft a request with the token in a query parameter or form field to receive the groups claim and learn private organization and team names. The EPSS score is <1%, indicating a low likelihood of exploitation. The CVSS score is 4.3, reflecting a low‑to‑medium severity. The impact of public‑side disclosure of private group membership is non‑trivial. The endpoint has been corrected to use the scope of the authenticating token, mitigating further exposure.