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
VendorProductAffected 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.
Fix within
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
Exploitation
<1% chance of attack within 30 days
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 · MITRE
Track software like this
Free during beta