Impact
Gitea versions up to and including 1.26.1 allow repository archive downloads to bypass token scope checks on the web archive download endpoint, permitting an authenticated user to download private repository archives even when the token does not have the appropriate download scope. This violation of scope controls leads to unauthorized disclosure of repository contents and is identified as CWE-284.
Affected Systems
The issue affects Gitea servers running any version up to and including 1.26.1; upgrading to 1.26.2 or later eliminates the vulnerability.
Risk and Exploitability
The vulnerability is remotely exploitable via the web API; the likely attack vector is a simple download request. An attacker only needs the archive download URL and a token, regardless of the token's scope. The EPSS score is < 1% and the flaw is not listed in CISA KEV. The CVSS score of 9.1 indicates high severity, reflecting the serious confidentiality impact of unauthorized access to repository archives.
OpenCVE Enrichment
Github GHSA