Gitea: Personal access token scope enforcement bypass on the repository home page (`GET /{owner}/{repo}`) discloses private repository contents (CVE-2026-58444)
Gitea versions prior to 1.27.0 have a vulnerability where personal access tokens (PATs) or OAuth2 tokens without the required 'repository' scope can bypass token scope enforcement on the repository home page route (GET /{owner}/{repo}). This allows disclosure of private repository contents such as the rendered README, file tree, description, language statistics, license, and latest release information. Other repository content routes correctly enforce token scope restrictions, but the repository home page route lacks this check, resulting in unauthorized information disclosure.
AI Analysis
Technical Summary
The vulnerability in Gitea (CVE-2026-58444) is a token scope enforcement bypass affecting the repository home page route handler 'repo.Home'. While other web routes serving private repository content enforce the presence of the 'repository' scope on personal access tokens or OAuth2 tokens, the repository home page route does not perform this check. Tokens lacking the 'repository' scope or marked as public-only can still access private repository metadata and content rendered on the home page, including README files and directory listings. This issue arises because the 'repo.Home' handler only verifies user permissions but does not validate the token's scope, unlike sibling handlers that call the scope guard 'context.CheckRepoScopedToken'. The vulnerability was confirmed on Gitea versions before 1.27.0 with proof-of-concept demonstrating private content disclosure using tokens without repository scope.
Potential Impact
An attacker with a personal access token or OAuth2 token lacking the 'repository' scope can access private repository information via the repository home page route. This includes sensitive data such as the rendered README, root file and directory listings, repository description, language statistics, license information, and latest release details. The vulnerability does not allow modification or deletion of repository content but results in unauthorized information disclosure of private repositories.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using personal access tokens or OAuth2 tokens without the 'repository' scope to access private repository content. Monitor vendor channels for updates regarding a patch or official fix addressing this token scope enforcement bypass on the repository home page route.
Gitea: Personal access token scope enforcement bypass on the repository home page (`GET /{owner}/{repo}`) discloses private repository contents (CVE-2026-58444)
Description
Gitea versions prior to 1.27.0 have a vulnerability where personal access tokens (PATs) or OAuth2 tokens without the required 'repository' scope can bypass token scope enforcement on the repository home page route (GET /{owner}/{repo}). This allows disclosure of private repository contents such as the rendered README, file tree, description, language statistics, license, and latest release information. Other repository content routes correctly enforce token scope restrictions, but the repository home page route lacks this check, resulting in unauthorized information disclosure.
CVSS v3.1
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in Gitea (CVE-2026-58444) is a token scope enforcement bypass affecting the repository home page route handler 'repo.Home'. While other web routes serving private repository content enforce the presence of the 'repository' scope on personal access tokens or OAuth2 tokens, the repository home page route does not perform this check. Tokens lacking the 'repository' scope or marked as public-only can still access private repository metadata and content rendered on the home page, including README files and directory listings. This issue arises because the 'repo.Home' handler only verifies user permissions but does not validate the token's scope, unlike sibling handlers that call the scope guard 'context.CheckRepoScopedToken'. The vulnerability was confirmed on Gitea versions before 1.27.0 with proof-of-concept demonstrating private content disclosure using tokens without repository scope.
Potential Impact
An attacker with a personal access token or OAuth2 token lacking the 'repository' scope can access private repository information via the repository home page route. This includes sensitive data such as the rendered README, root file and directory listings, repository description, language statistics, license information, and latest release details. The vulnerability does not allow modification or deletion of repository content but results in unauthorized information disclosure of private repositories.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using personal access tokens or OAuth2 tokens without the 'repository' scope to access private repository content. Monitor vendor channels for updates regarding a patch or official fix addressing this token scope enforcement bypass on the repository home page route.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-cp3q-vrj2-ghhh
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-58444"]
- Ecosystems
- ["Go"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a600ab79c2644c7f8fe24f3
Added to database: 07/22/2026, 00:11:35 UTC
Last enriched: 07/22/2026, 00:49:59 UTC
Last updated: 07/27/2026, 03:03:01 UTC
Views: 15
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.