CVE-2026-73535

Gitea second-factor bypass through OpenID identity linking

Published Oct 14, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
Description
Gitea's OpenID connect handler accepts a user's password without enforcing enrolled TOTP or WebAuthn verification before completing sign-in and linking an OpenID identifier. When OpenID sign-in is enabled, an attacker who knows the victim's password can obtain a session and link an attacker-controlled identifier. The attacker can then sign in through that identifier without the victim's password or second factor, and a password change does not remove the link.

Analysis

AI-generated

Technical impact

Gitea’s OpenID Connect handler accepts a user’s password without enforcing previously enrolled TOTP or WebAuthn verification, allowing an attacker who knows a victim’s password to link an attacker‑controlled OpenID identifier to the victim’s account. Once linked, the attacker can subsequently authenticate through that identifier without the victim’s password or second factor, and the link persists even after the victim changes their password. This represents a failure to enforce multi‑factor authentication (CWE‑304) and a disabling of a security mechanism during account linking (CWE‑696).

Affected Systems

All Gitea instances running a version earlier than 1.27.2 that have the OpenID Connect feature enabled are affected. The fix is included in the 1.27.2 release, so any deployment of Gitea before that version should be considered vulnerable until upgraded. The issue does not depend on a specific client or infrastructure component; it impacts the Gitea application as a whole.

Risk and Exploitability

An attacker only requires knowledge of a valid user’s password and a server with OpenID Connect enabled. There are no additional network restrictions or special privileges needed; the exploit can be carried out through the normal authentication endpoint. The CVSS score is 8.8, indicating high severity; the EPSS score is listed as < 1%, and the vulnerability is not currently in the CISA KEV catalogue. However, the loss of two‑factor authentication and the persistence of the unauthorized link make the risk high, especially for accounts that continue to use the compromised OpenID identifier after the attacker has an established session.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Gitea v1.27.2 or later, where the handler enforces two‑factor authentication before linking OpenID identifiers.
  • If an upgrade cannot be performed immediately, disable or heavily restrict OpenID Connect authentication until the patch is applied.
  • After applying the patch, audit existing account linkages for suspicious OpenID identifiers and revoke any that appear unauthorized.

Generated by OpenCVE AI on October 18, 2026 at 15:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
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': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

ssvc

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

Type Values Removed Values Added
Description Gitea's OpenID connect handler accepts a user's password without enforcing enrolled TOTP or WebAuthn verification before completing sign-in and linking an OpenID identifier. When OpenID sign-in is enabled, an attacker who knows the victim's password can obtain a session and link an attacker-controlled identifier. The attacker can then sign in through that identifier without the victim's password or second factor, and a password change does not remove the link.
Title Gitea second-factor bypass through OpenID identity linking
Weaknesses CWE-304
CWE-696
References
Weaknesses
  • CWE-304

    Missing Critical Step in Authentication

  • CWE-696

    Incorrect Behavior Order

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Oct 18, 2026, 1:32 PM
Reserved
Aug 13, 2026, 4:50 PM
Status
Deferred
Published
Oct 14, 2026, 3:17 PM
Modified
Oct 18, 2026, 2:16 PM