Description
The Gitea OpenID association callback in the security settings accepted a positive OpenID 2.0 assertion without checking that the signed-in user had started the linking. Because OpenID 2.0 allows unsolicited assertions, an attacker-controlled OpenID provider could attach the attacker's identity to the account of a signed-in victim who opened a crafted link, and the attacker could then sign in as the victim through OpenID login, which does not apply the local TOTP or WebAuthn checks. The callback now requires a time-limited `state` value bound to the user.
Published: 2026-10-18
Score: 5.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Account Takeover via OpenID association
Action: Patch
AI Analysis

Impact

Gitea’s OpenID association callback accepted a positive OpenID 2.0 assertion without verifying that the request was initiated by an authenticated, intent‑to‑link session. This authentication failure (CWE‑287) allowed an attacker controlling an OpenID provider to link their own identity to a victim’s Gitea account. Once linked, the attacker can authenticate as the victim through OpenID, bypassing local two‑factor (TOTP) or WebAuthn checks and gaining full account control.

Affected Systems

All Gitea installations that use OpenID authentication and are running a version older than 28.2.0 are affected. The 28.2.0 release contains a fix that requires a time‑limited state value bound to the user in the callback.

Risk and Exploitability

The CVSS score of 5.4 and an EPSS score of < 1% indicate a moderate risk, and the vulnerability is not listed in CISA KEV. Attackers must control an OpenID provider and persuade a victim to click a crafted link. Based on the description, the attack vector is inferred to be a phishing or social engineering scenario that relies on the victim’s voluntary interaction. If exploited, the attacker would obtain complete access to the victim’s account and could carry out any actions authorized to that user. Consequently, the risk remains high for deployments that enable OpenID authentication and have not yet applied the patch.

Generated by OpenCVE AI on October 20, 2026 at 06:15 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gitea to version 28.2.0 or later to activate the state token binding in the OpenID callback.
  • Disable OpenID authentication in the configuration until the patch is applied if an upgrade cannot be performed immediately.
  • Restrict OpenID association to trusted providers and monitor for unexpected link activations.

Generated by OpenCVE AI on October 20, 2026 at 06:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 20 Oct 2026 01:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 19 Oct 2026 23:45:00 +0000

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea
Vendors & Products Gitea
Gitea gitea

Mon, 19 Oct 2026 21:30:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N'}


Sun, 18 Oct 2026 19:00:00 +0000

Type Values Removed Values Added
Description The Gitea OpenID association callback in the security settings accepted a positive OpenID 2.0 assertion without checking that the signed-in user had started the linking. Because OpenID 2.0 allows unsolicited assertions, an attacker-controlled OpenID provider could attach the attacker's identity to the account of a signed-in victim who opened a crafted link, and the attacker could then sign in as the victim through OpenID login, which does not apply the local TOTP or WebAuthn checks. The callback now requires a time-limited `state` value bound to the user.
Title Gitea OpenID account linking without session binding
Weaknesses CWE-287
CWE-352
References

cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-10-19T20:20:15.460Z

Reserved: 2026-10-14T20:08:45.852Z

Link: CVE-2026-104627

cve-icon Vulnrichment

Updated: 2026-10-19T20:19:46.272Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-10-18T19:16:32.463

Modified: 2026-10-19T21:17:03.083

Link: CVE-2026-104627

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-20T06:30:10Z

Weaknesses
  • CWE-287

    Improper Authentication

  • CWE-352

    Cross-Site Request Forgery (CSRF)