CVE-2026-28699

Gitea Basic Auth bypasses OAuth2 access token scopes

Published Jul 3, 2026 CVSS 3.1 · 8.1 High EPSS < 1% KEV · Not listed
Description
Gitea versions up to and including 1.26.1 allow OAuth2 access token scope enforcement to be bypassed through HTTP Basic authentication.

Analysis

AI-generated

Technical impact

The flaw allows the OAuth2 access token scope enforcement to be bypassed via HTTP Basic authentication in Gitea up to and including version 1.26.1. By authenticating with Basic credentials, an attacker can use a token for actions beyond its intended scopes, enabling unauthorized actions on repositories. The issue maps to CWE-863 (Scope Bypass) and CWE-284 (Improper Authorization).

Affected Systems

The vulnerability affects the Gitea Open Source Git Server to and including 1.26.1. The latest released version, 1.26.2, contains the fix.

Risk and Exploitability

The CVSS score of 8.1 classifies this as high severity. The EPSS score of < 1% indicates a low but nonzero probability of exploitation, and it is not listed in the CISA KEV catalog, so there is no known widespread exploitation yet. The likely attack vector is remote over the network, requiring the attacker authenticated, the attacker can use any OAuth2 token without its intended scope checks.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gitea to the latest released version (e.g., 1.26.2 or later)
  • If an immediate upgrade is not feasible, disable HTTP Basic authentication or enforce strict scope checks on token usage
  • Conduct audit of OAuth2 token enforcement and monitor logs for unauthorized token usage

Generated by OpenCVE AI on August 1, 2026 at 20:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-9r5x-wg6m-x2rc Gitea: OAuth2 access token scope enforcement bypass via HTTP Basic authentication
History
Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea Open Source Git Server
Vendors & Products Gitea
Gitea gitea Open Source Git Server
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description Gitea versions up to and including 1.26.1 allow OAuth2 access token scope enforcement to be bypassed through HTTP Basic authentication.
Title Gitea Basic Auth bypasses OAuth2 access token scopes
Weaknesses CWE-284
CWE-863
References
Metrics cvssV3_1

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Jul 6, 2026, 3:18 PM
Reserved
Mar 3, 2026, 3:25 AM
Status
Deferred
Published
Jul 3, 2026, 9:16 PM
Modified
Oct 25, 2026, 3:10 PM