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 CVE-2026-20800 sibling endpoints not covered: revoked user still reads private repo objects via `/api/v1/user/starred` and private issue titles via `/api/v1/user/times` (CVE-2026-59766)

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

Description

Gitea versions prior to 1.27.0 contain a vulnerability where revoked users can still access metadata of private repositories and private issue titles via two API endpoints: /api/v1/user/starred and /api/v1/user/times. This occurs because these endpoints do not properly re-check repository access permissions at output time, allowing former collaborators to enumerate private repos they had starred and read private issue titles indefinitely after access revocation. The leaked information is limited to metadata and does not include repository content or comment bodies.

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:53:41 UTC

Technical Analysis

CVE-2026-59766 affects Gitea before version 1.27.0. It is a follow-up issue to CVE-2026-20800, where the fix only covered the notification endpoint. Two sibling endpoints, /api/v1/user/starred and /api/v1/user/times, fail to re-validate repository access permissions when returning data keyed on the caller's relationship. As a result, revoked users can still retrieve full repository objects (including full_name, private flag, clone_url, ssh_url) for private repos they previously starred, and private issue titles for issues they logged time on. The vulnerability leaks metadata only, not repository content or comments. The issue was confirmed on Gitea 1.25.4 and reported responsibly as part of an incomplete-patch study.

Potential Impact

A revoked user who previously had access to private repositories can indefinitely enumerate private repositories they starred and read private issue titles associated with their tracked time entries. The information leaked is limited to metadata such as repository names, clone URLs, and issue titles, without exposing actual repository content or issue comment bodies. This could lead to unauthorized disclosure of sensitive project metadata.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Suggested remediation includes modifying the getStarredRepos function to exclude or redact repositories where the caller lacks access permissions, and filtering tracked-time entries in ListMyTrackedTimes by current repository access. Optionally, clearing a user's stars and time entries for private repositories upon access revocation can further reduce exposure. Since no official patch or fix link is provided, users should monitor Gitea advisories for updates and apply fixes once available.

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-qf2f-qh6p-7v89
Osv Schema Version
1.4.0
Aliases
["CVE-2026-59766"]
Ecosystems
["Go"]
Database Specific Severity
MODERATE
Cvss Version
3.1

Threat ID: 6a600abd9c2644c7f8fe2eff

Added to database: 07/22/2026, 00:11:41 UTC

Last enriched: 07/22/2026, 00:53:41 UTC

Last updated: 07/22/2026, 01:58:17 UTC

Views: 5

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