CVE-2026-118394
published medium CVSS 3.1 · 4.3Gitea OAuth2 userinfo private group disclosure to public-only tokens
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Gitea | — | gitea.devGitea · 1.23.0 to < 28.3.0 · Other versions: unaffected | Affected | Not stated | Gitea |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.3 / 10
- Severity
- medium
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Gitea | Gitea | 1.23.0 to < 28.3.0 (affected · semver)Default: unaffected | Gitea · cna |
Weaknesses
2- CWE-200 CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
- CWE-863 CWE-863: Incorrect Authorization
References
5- Gitea 28.3.0 release announcement https://blog.gitea.com/release-of-28.3.0/
- Fix: go-gitea/gitea pull request #39690 https://github.com/go-gitea/gitea/pull/39690
- Fix backport to release/v28: go-gitea/gitea pull request #39853 https://github.com/go-gitea/gitea/pull/39853
- go-gitea/gitea v28.3.0 release https://github.com/go-gitea/gitea/releases/tag/v28.3.0
- GitHub Security Advisory GHSA-q9gm-9c7q-c5hq https://github.com/go-gitea/gitea/security/advisories/GHSA-q9gm-9c7q-c5hq
Provider assertions
2Gitea · cna
Gitea OAuth2 userinfo private group disclosure to public-only tokens
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 489f0f72c6a11f68c9eda53f82fd796eb80f5c6b754321c3293d1b26bb5942ce
- Ingested
- 07 Nov 2026, 23:39:08 UTC
- Source record
- Official CVE record