Back to the CVE list
CVE-2026-120263

Gitea OAuth2 account auto-linking takeover through the sign-up form

CVSS score

—

EPSS probability

%0.2

Risk score

—

Published

4 h ago

Official patch verified

Etkilenen ürün ve sürüm için yayımlanan güvenlik güncellemesini uygulayın.

Impact on My Inventory

Only the personal products you have added to your account are assessed; an organisation's inventory does not appear here.

Checking session…

Vulnerability description

DayBreach AI Explanation

Verified against sources

Gitea OAuth2 Account Auto-Linking Takeover Vulnerability

Sources read

2

Source agreement

Tam uyum

Evidence confidence

%63

Short explanation

When OAuth2 account auto-linking is enabled in Gitea, the registration form looks up existing accounts using the submitted username or email instead of the OAuth2 provider's asserted identity. This vulnerability allows attackers to link external identities to another user's account and sign in without a password.

Why does it matter?

This authentication flaw enables attackers to compromise any user account, including administrator accounts. The persistence of the link affects subsequent sign-ins.

What should be done?

  • Follow vendor advisory recommendations
  • Review provided patch references
  • Upgrade Gitea to unaffected versions
Chain of evidence and sources2 verified claims

Gitea üzerinde [oauth2_client].ACCOUNT_LINKING ayarı auto olduğunda kayıt formu OAuth2 kimliği yerine formda sunulan kullanıcı adını veya e-postayı aratmaktadır.

Saldırgan, yapılandırılmış bir OAuth2 sağlayıcısındaki hesabını kullanarak başka bir kullanıcının adını gönderebilir ve şifresiz olarak yönetici dahil o hesapla oturum açabilir.

Show the technical text from the sources

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.

CWE: CWE-287, CWE-639

This explanation was compiled automatically from the source records. Scores, active exploitation, patch and exploit status come straight from the sources.

IMPACT: Affected Products and Software

Affected Products

The following products are affected by CVE-2026-120263 vulnerability. Where our threat engine knows the exact affected versions, they are listed below.

IDVENDORPRODUCTACTION
1giteagitea View
Total affected vendors: 1|Products: 1

RED HAT CSAF/VEX: Product Impact Check

Red Hat has not yet published a CSAF/VEX impact record for this CVE. This does not mean “not affected”.

SCORING: CVSS from Multiple Sources

CVSS Scores

The Common Vulnerability Scoring System is a standardised framework for assessing the severity of vulnerabilities in software and systems. We collect and display CVSS scores from several sources for each CVE.

SCOREVERSIONSEVERITYVECTORSOURCE
The sources have not yet published a verified CVSS metric.

Patch and Remediation Guide

Solution & Remediation Advisory

Patch verified

4 doğrulanmış yama veya düzeltilmiş sürüm kanıtı bulundu.

cvelist

Fix: go-gitea/gitea pull request #40121

Open source
cvelist

Fix backport to release/v28: go-gitea/gitea pull request #40137

Open source
reference

Fix: go-gitea/gitea pull request #40121

Open source
reference

Fix backport to release/v28: go-gitea/gitea pull request #40137

Open source
Confirm the affected product and version against the source evidence above.
Restrict access to internet-facing services and apply network segmentation.
Apply the official update named in the evidence only to the matching product and version.
Monitor server logs and network endpoints for signs of anomalous execution.

Public exploit and active exploitation status

Verified exploit intelligence

No verified public PoC, exploit repository or Metasploit module has been found for this CVE yet.

Weakness Classification and Attack Patterns (CWE & CAPEC)

CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorises the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-120263 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-120263 weaknesses.

Official Sources and Advisories

Yama doğrulandı

4 doğrulanmış yama veya düzeltilmiş sürüm kanıtı bulundu.

Follow the vendor

G
gitea logo
gitea

Weakness Type (CWE & CAPEC)

Similar Vulnerabilities

Get this vulnerability through the API

Affected products, version ranges, exploitation status and patch information in a single request, with a free key.

curl -H "x-api-key: $DAYBREACH_API_KEY" \
  "https://api.daybreach.dev/api/v1/intel/cves/CVE-2026-120263"
CVE-2026-120263 · Gitea OAuth2 account auto-linking takeover…