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.
Published: 2026-07-03
Score: 8.1 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

Generated by OpenCVE AI on July 21, 2026 at 09:26 UTC.

Remediation

No vendor fix or workaround currently provided.

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 July 21, 2026 at 09:26 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

Mon, 06 Jul 2026 23:15:00 +0000

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea Open Source Git Server
Vendors & Products Gitea
Gitea gitea Open Source Git Server

Mon, 06 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Fri, 03 Jul 2026 20:45:00 +0000

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'}


Subscriptions

Gitea Gitea Open Source Git Server
cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-07-06T15:17:58.355Z

Reserved: 2026-03-03T03:25:50.255Z

Link: CVE-2026-28744

cve-icon Vulnrichment

Updated: 2026-07-06T15:17:49.852Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-21T09:30:04Z

Weaknesses