Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

Gitea: Personal access token scope enforcement bypass on the repository home page (`GET /{owner}/{repo}`) discloses private repository contents (CVE-2026-58444)

0
Medium
Published: 07/21/2026 (07/21/2026, 20:38:31 UTC)
Source: GCVE Database
Product: code.gitea.io/gitea

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Affected software

Goghsa
code.gitea.io/gitea
Affected versions
<1.27.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/22/2026, 00:49:59 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses