CVE-2026-118394: Gitea OAuth2 userinfo private group disclosure to public-only tokens
CVE-2026-118394 affects 35 listed versions of Gitea in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Gitea
35 of 124 listed versions are affected. Fixed in 28.3.0. The newest release, 28.4.0, is not affected.
28.2.0 28.1.0 28.0.0 1.27.3 1.27.2 1.27.1 1.27.0 1.26.4 1.26.3 1.26.2 1.26.1 1.26.0 1.25.5 1.25.4 1.25.3 1.25.2 1.25.1 1.25.0 1.24.7 1.24.6 1.24.5 1.24.4 1.24.3 1.24.2 1.24.1 1.24.0 1.23.8 1.23.7 1.23.6 1.23.5 1.23.4 1.23.3 1.23.2 1.23.1 1.23.0
What it is
The OAuth2 userinfo endpoint (`/login/oauth/userinfo`) decided whether to limit the `groups` claim to public organizations by re-parsing the `Authorization` header as an OAuth2 access token instead of using the scope of the credential that authenticated the request. When a public-only OAuth2 token was sent as a query parameter or form field, or a public-only personal access token was used, that scope came back empty and the claim listed the token owner's private organizations, teams and concealed memberships. The disclosure is limited to the owner's organization and team names and memberships; no repository content is exposed. The endpoint now uses the scope of the authenticating token.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N (Gitea)
Published by Gitea on 1 November 2026. Last changed 6 November 2026.
Sources
Check one version you run: look CVE-2026-118394 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.