# CVE-2026-118394: Gitea OAuth2 userinfo private group disclosure to public-only tokens

- Severity: Medium 4.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Published: 2026-11-01T09:48:49.431Z
- Modified: 2026-11-06T15:17:11.710Z
- Weaknesses: CWE-200, CWE-863
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- gitea.dev: from 1.23.0 before 28.3.0

## References

- <https://github.com/go-gitea/gitea/security/advisories/GHSA-q9gm-9c7q-c5hq> (vendor-advisory)
- <https://github.com/go-gitea/gitea/pull/39690> (patch)
- <https://github.com/go-gitea/gitea/pull/39853> (patch)
- <https://blog.gitea.com/release-of-28.3.0/> (release-notes)
- <https://github.com/go-gitea/gitea/releases/tag/v28.3.0> (release-notes)

## Sources

- CVE List: [CVE-2026-118394](https://www.cve.org/CVERecord?id=CVE-2026-118394), CVE Terms of Use, modified 2026-11-06
- NVD: [CVE-2026-118394](https://nvd.nist.gov/vuln/detail/CVE-2026-118394), Public domain, modified 2026-11-06

---

Page: https://cve.day/CVE-2026-118394 · Whole record: https://cve.day/CVE-2026-118394.json · Rebuilt by cve.day 2026-11-25T22:59:48.095Z
