← Back to CVE List
Vulnerability Intelligence Report
Gitea OAuth2 account auto-linking takeover through the sign-up form

CVE-2026-120263

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.

Authentication Bypass No Active Exploit Signals
CVSS Base Score
9.8
CRITICAL
Exploitability:3.9
Impact Score:5.9
EPSS Probability:0.16%
Executive Threat Verdict
Evaluating...
Evaluating Threat Landscape...
Assessing known weaponization, exploitation telemetry, and federal advisories.
Attack Surface
—
Authentication
—
Weaponization
—
SSVC Action
—

Weaknesses (CWE)

CWE-287 ↗CWE-287: Improper Authentication
CWE-639 ↗CWE-639: Authorization Bypass Through User-Controlled Key

Affected Products & Versions

Vendor Product Affected Versions
Gitea Gitea 0 < 28.3.0 (affected)

References & Technical Advisories

No reference links found.

Threat Intelligence Signals

EPSS Score
0.162%
Vulnerability Class
Authentication Bypass

Identity & Timeline

StatusPUBLISHED
Assigning AuthorityGitea Limited · Open Source · China
Reserved2026-11-01T08:48:41
Published2026-11-01T09:47:09
Last Updated2026-11-06T15:43:25

LINK COPIED TO CLIPBOARD