Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
9.8
CVE-2026-120263: Gitea lets attackers take over accounts via automatic link
CVE-2026-120263 · published 21 days ago
Summary
If Gitea is set to automatically link new OAuth2 sign‑ups, an attacker can enter someone else’s name or email and attach their external login to that existing account, gaining access without a password, even as an admin. To protect your system, change the setting so automatic linking only occurs when the email or username matches the provider, or require a password for linking.
What to do
- Update gitea gitea to version 28.3.0 or later.
Affected software
| Vendor | Product | Affected versions |
|---|---|---|
| gitea | gitea | < 28.3.0 |
Original advisory text
Gitea OAuth2 account auto-linking takeover through the sign-up form
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.
References
- https://github.com/go-gitea/gitea/security/advisories/GHSA-8p3x-w464-4g6v Vendor Advisory
- https://github.com/go-gitea/gitea/pull/40121 Patch
- https://github.com/go-gitea/gitea/pull/40137 Patch
- https://blog.gitea.com/release-of-28.3.0/ Vendor Advisory
- https://github.com/go-gitea/gitea/releases/tag/v28.3.0 Vendor Advisory
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-1202... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-120263 Vendor Advisory
Internet-facing
3 days
Internal
60 days
- Not known to be exploited
- Can be exploited automatically
- Gives an attacker full control
Severity
9.8
Critical
Type
CWE-287Improper Authentication
CWE-639Authorization Bypass Through User-Controlled Key
Timeline
Published1 Nov 2026
Updated22 Nov 2026
First seen1 Nov 2026
Sources
CVE-2026-120263 · NVD
CVE-2026-120263 · MITRE
CVE-2026-120263 · OSV
GHSA-8p3x-w464-4g6v · GHSA
Track software like this
Free during beta