CVE-2026-120263Gitea
Privilege Escalation via Automatic OAuth2 Account Linking in Gitea
Critical 9.8 No auth needed
Follow: this CVE · Gitea · Gitea We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- —
- Auth required
- No
- Published
- Nov 1, 2026
- Updated
- Nov 6, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
When automatic OAuth2 account linking is enabled in Gitea, an attacker can submit another user's name or email in the registration form to link their external identity to that account and gain access without a password, including as an administrator. The vulnerability affects Gitea when `[oauth2_client].ACCOUNT_LINKING` is set to `auto` and registration is enabled. The link persists for subsequent sign-ins.
Show the original NVD text
When `[oauth2_client].ACCOUNT_LINKING` is set to `auto` (not the default) and registration is enabled, the link-account sign-up form looked up the existing account to link by the user name or email submitted in the form instead of the identity asserted by the OAuth2 provider. An attacker with an account on a configured OAuth2 provider could submit another user's name, link their external identity to that Gitea account and be signed in as it without its password, including as an administrator. The link persisted for later sign-ins. Automatic linking now only happens when the existing account matches the provider's email or provider-derived user name; otherwise the account password is required.
What to do
Patch available · fixed versions: 28.3.0
Update Gitea to version 28.3.0 or later. If you cannot update, disable automatic OAuth2 account linking or disable registration.
- Apply the vendor's security update for Gitea.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products
- Gitea · Gitea
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
On social media
1 person and 1 post on Bluesky in the last 30 days.
Most recent posts, without bots or automated feeds. The text belongs to its authors. Search on Bluesky
Official sources
References
Links published by the sources. Open them with care.