Skip to main content
Vulnerability Database/CVE-2026-73278

CVE-2026-73278: Gitea WebAuthn Auth Bypass Vulnerability

CVE-2026-73278 is an authentication bypass flaw in Gitea that allows attackers to skip WebAuthn verification during OAuth2 and OpenID Connect sign-in. This post covers technical details, affected versions, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-73278 Overview

CVE-2026-73278 is an authentication bypass vulnerability in Gitea's OAuth2 and OpenID Connect (OIDC) sign-in paths. The flaw allows an attacker who can authenticate through an external identity provider to obtain a full session without completing the WebAuthn passkey challenge, when WebAuthn is the account's only configured second factor. One of the affected paths also persists an external identity link, extending the compromise beyond a single session. Accounts protected by Time-based One-Time Password (TOTP) are outside the reported scenario. The issue is tracked under CWE-287: Improper Authentication and was addressed in Gitea 1.27.2.

Critical Impact

Attackers authenticating via OAuth2 or OIDC can bypass WebAuthn second-factor enforcement and gain full account access, with potential persistence through linked external identities.

Affected Products

  • Gitea versions prior to 1.27.2
  • Gitea deployments configured with OAuth2 sign-in
  • Gitea deployments configured with OpenID Connect sign-in

Discovery Timeline

  • 2026-10-06 - CVE-2026-73278 published to NVD
  • 2026-10-07 - Last updated in NVD database

Technical Details for CVE-2026-73278

Vulnerability Analysis

Gitea enforces WebAuthn as a second factor during password-based login, requiring a passkey assertion before issuing a session. The OAuth2 and OpenID Connect sign-in paths did not apply the same enforcement when WebAuthn was the sole second factor configured on the account. A party able to authenticate through the external identity provider therefore received a fully authenticated session, skipping the passkey challenge entirely.

The scope is limited to accounts whose only configured second factor is WebAuthn. Accounts that also have TOTP enrolled are not affected by the reported condition, because the TOTP enforcement path is reached independently.

Root Cause

The root cause is inconsistent two-factor enforcement across authentication entry points. Password login invokes the WebAuthn verification handler before completing the session, while the OAuth2 and OIDC handlers completed the session without routing the user through the WebAuthn challenge. This represents a missing authentication step [CWE-287] within the external identity flow rather than a cryptographic weakness in WebAuthn itself.

Attack Vector

An attacker who controls or compromises a user's external identity provider account—or who can complete the OAuth2/OIDC flow on behalf of the victim—can sign into the target Gitea account without producing the registered passkey. On the affected path that persists an external identity link, the attacker can bind an attacker-controlled external identity to the victim's Gitea account, enabling continued access after initial exploitation.

No exploitation code is published in the referenced advisory. See the GitHub Security Advisory GHSA-92j2-6qcg-c28c and the fix in Gitea Pull Request #38805 and Gitea Pull Request #38810 for the technical remediation.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-73278

Indicators of Compromise

  • Successful OAuth2 or OIDC sign-in events for accounts that have WebAuthn enrolled but no corresponding WebAuthn assertion recorded in the authentication logs.
  • Unexpected creation or linking of external identity providers on user accounts, visible in Gitea's user settings and audit logs.
  • Session establishment from new IP addresses or user agents immediately following an external identity callback.

Detection Strategies

  • Correlate Gitea authentication logs with identity provider logs to confirm every WebAuthn-enrolled account completes a passkey assertion before session issuance.
  • Alert on OAuth2/OIDC callbacks that result in new external_login_user records for pre-existing accounts.
  • Review administrative actions, repository access, and token creation performed by WebAuthn-enrolled accounts during the exposure window.

Monitoring Recommendations

  • Enable verbose authentication logging on the Gitea instance and forward logs to a centralized analytics platform for correlation.
  • Monitor the /user/oauth2/, /user/login/openid, and related callback endpoints for anomalous access patterns.
  • Track changes to the external identity bindings table and generate alerts on unexpected link additions.

How to Mitigate CVE-2026-73278

Immediate Actions Required

  • Upgrade all Gitea instances to version 1.27.2 or later as documented in the Gitea 1.27.2 Release Announcement.
  • Audit accounts configured with WebAuthn as the sole second factor and review their recent sign-in activity.
  • Enroll an additional TOTP factor on sensitive accounts until all instances are patched, since TOTP-enrolled accounts fall outside the reported scenario.
  • Review and remove unexpected external identity links on user accounts.

Patch Information

The Gitea project released version 1.27.2 containing the fixes merged in Pull Request #38805 and Pull Request #38810. These changes extend WebAuthn enforcement into the OAuth2 and OpenID Connect sign-in flows and prevent the affected path from silently persisting an external identity link. Refer to the Gitea v1.27.2 Release Notes for the complete change set.

Workarounds

  • Disable OAuth2 and OpenID Connect sign-in sources in the Gitea administrative console until the instance is upgraded.
  • Require TOTP enrollment alongside WebAuthn for all users, which removes affected accounts from the vulnerable scenario.
  • Restrict OAuth2/OIDC provider configurations to identity providers that enforce strong second-factor authentication at the provider level.

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.