CVE-2026-28744

Gitea Git smart HTTP bypasses repository token scopes for bearer tokens

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 Git smart HTTP requests authenticated with bearer tokens to bypass repository token scope checks.

Analysis

AI-generated

Technical impact

Gitea versions up to and including 1.26.1 allow Git smart HTTP requests authenticated with bearer tokens to bypass repository token scope checks. The flaw, identified as CWE-863, could enable an attacker who possesses a valid bearer token to access or modify repository resources beyond the intended permissions of that token.

Affected Systems

The vulnerability affects the Gitea Open Source Git Server product, specifically all releases through version 1.26.1. Users on those versions are at risk until they apply the fix available in later releases.

Risk and Exploitability

The CVSS score of 8.1 indicates a high severity, and the EPSS score of < 1% suggests a very low likelihood of exploitation. The vulnerability is not listed in the CISA KEV catalog. Attackers can issue a Smart HTTP request that appears to be within scope but is accepted by the server. If an attacker already possesses a bearer token, they can leverage this bypass to gain elevated access without changing the trust level of the token.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gitea to version 1.26.2 or newer, where the token scope enforcement has been restored.
  • Revoke existing bearer tokens that were created under the vulnerable version and issue new tokens with the correct scopes.
  • Configure the Gitea instance to enforce strict repository access controls or disable Smart HTTP for environments where token scope enforcement cannot be guaranteed.

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

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-cc8w-r4qh-3v65 Gitea: Git Smart HTTP Skips Repository Token Scopes for Bearer Tokens
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 Git smart HTTP requests authenticated with bearer tokens to bypass repository token scope checks.
Title Gitea Git smart HTTP bypasses repository token scopes for bearer tokens
Weaknesses 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:17 PM
Reserved
Mar 3, 2026, 3:25 AM
Status
Deferred
Published
Jul 3, 2026, 9:17 PM
Modified
Oct 25, 2026, 3:10 PM