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)
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.
AI Analysis
Technical Summary
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.
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)
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
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
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.
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 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.