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.
Published: 2026-10-14
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: Second‑factor bypass via OpenID identity linking
Action: Immediate Patch
AI Analysis

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

Generated by OpenCVE AI on October 15, 2026 at 19:16 UTC.

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 15, 2026 at 19:16 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 14 Oct 2026 15:00:00 +0000

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

Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-10-14T14:37:39.073Z

Reserved: 2026-08-13T16:50:58.701Z

Link: CVE-2026-73535

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-10-14T15:17:23.517

Modified: 2026-10-14T16:04:39.483

Link: CVE-2026-73535

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-15T19:30:18Z

Weaknesses
  • CWE-304

    Missing Critical Step in Authentication

  • CWE-696

    Incorrect Behavior Order