CVE-2026-120263
published critical CVSS 3.1 · 9.8Gitea OAuth2 account auto-linking takeover through the sign-up form
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Gitea | — | gitea.devGitea · 0 to < 28.3.0 · Other versions: unaffected | Affected | Not stated | Gitea |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Gitea | Gitea | 0 to < 28.3.0 (affected · semver)Default: unaffected | Gitea · cna |
Weaknesses
2- CWE-287 CWE-287: Improper Authentication
- CWE-639 CWE-639: Authorization Bypass Through User-Controlled Key
References
5- Gitea 28.3.0 release announcement https://blog.gitea.com/release-of-28.3.0/
- Fix: go-gitea/gitea pull request #40121 https://github.com/go-gitea/gitea/pull/40121
- Fix backport to release/v28: go-gitea/gitea pull request #40137 https://github.com/go-gitea/gitea/pull/40137
- go-gitea/gitea v28.3.0 release https://github.com/go-gitea/gitea/releases/tag/v28.3.0
- GitHub Security Advisory GHSA-8p3x-w464-4g6v https://github.com/go-gitea/gitea/security/advisories/GHSA-8p3x-w464-4g6v
Provider assertions
2Gitea · cna
Gitea OAuth2 account auto-linking takeover through the sign-up form
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 04be418e3402069f8a21edce9a634b8665b31676051c94e31ff52c1ae65a59f9
- Ingested
- 07 Nov 2026, 23:39:52 UTC
- Source record
- Official CVE record