Bug 2564531 (CVE-2026-118394) - CVE-2026-118394 code.gitea.io/gitea: Gitea: Information disclosure via improper token scope validation in OAuth2 userinfo endpoint
Summary: CVE-2026-118394 code.gitea.io/gitea: Gitea: Information disclosure via improp...
Keywords:
Status: NEW
Alias: CVE-2026-118394
Product: Security Response
Classification: Other
Component: vulnerability-draft
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-01 09:51 UTC by OSIDB Bzimport
Modified: 2026-11-03 08:13 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-01 09:51:47 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.