CVE-2026-120263: Gitea OAuth2 account auto-linking takeover through the sign-up form

CVE-2026-120263 affects 122 listed versions of Gitea in the Dawnsentry catalogue.

9.8CVSS critical
None knownexploitation
under 1%EPSS (next 30 days)
1 November 2026published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Gitea

122 of 124 listed versions are affected. Fixed in 28.3.0. The newest release, 28.4.0, is not affected.

28.2.0 28.1.0 28.0.0 1.27.3 1.27.2 1.27.1 1.27.0 1.26.4 1.26.3 1.26.2 1.26.1 1.26.0 1.25.5 1.25.4 1.25.3 1.25.2 1.25.1 1.25.0 1.24.7 1.24.6 1.24.5 1.24.4 1.24.3 1.24.2 1.24.1 1.24.0 1.23.8 1.23.7 1.23.6 1.23.5 1.23.4 1.23.3 1.23.2 1.23.1 1.23.0 1.22.6 1.22.5 1.22.4 1.22.3 1.22.2 1.22.1 1.22.0 1.21.11 1.21.10 1.21.9 1.21.8 1.21.7 1.21.6 1.21.5 1.21.4 1.21.3 1.21.2 1.21.1 1.21.0 1.20.6 1.20.5 1.20.4 1.20.3 1.20.2 1.20.1 and 62 more

What it is

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (Gitea)

Published by Gitea on 1 November 2026. Last changed 6 November 2026.

Sources

Check one version you run: look CVE-2026-120263 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.