CVE-2026-104627

Gitea OpenID account linking without session binding

Published Oct 18, 2026 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea
Vendors & Products Gitea
Gitea gitea
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'}

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
Weaknesses
  • CWE-287

    Improper Authentication

  • CWE-352

    Cross-Site Request Forgery (CSRF)

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Oct 19, 2026, 8:20 PM
Reserved
Oct 14, 2026, 8:08 PM
Status
Awaiting Analysis
Published
Oct 18, 2026, 7:16 PM
Modified
Oct 19, 2026, 9:17 PM