CVE-2026-59766

Gitea private repository metadata disclosure after access revocation

Published Oct 14, 2026 CVSS 3.1 · 4.3 Medium EPSS < 1% KEV · Not listed
Description
Gitea's starred-repository and tracked-time API endpoints do not re-check current repository permissions before returning data associated with the requesting user. A user whose access to a private repository has been revoked can still retrieve repository metadata through /api/v1/user/starred and private issue titles through /api/v1/user/times. The disclosure depends on relationships or tracked-time entries created before access was revoked.

Analysis

AI-generated

Technical impact

Gitea's starred-repository and tracked-time API endpoints do not re-check current repository permissions before returning data associated with the requesting user. A user whose access to a private repository has been revoked can still retrieve repository metadata through /api/v1/user/starred and private issue titles through /api/v1/user/times. The disclosure depends on relationships or tracked-time entries created before access was revoked. This is a classic case of improper authorization, as defined by CWE-284.

Affected Systems

Gitea, the self‑hosted Git platform. The affected versions are not listed in the advisory, so the flaw may exist in any version of Gitea that exposes the /api/v1/user/starred and /api/v1/user/times endpoints.

Risk and Exploitability

The CVSS score of 4.3 indicates moderate risk; the EPSS score is 0.00281, indicating a very low probability of exploitation, and the vulnerability is not listed in CISA’s KEV catalog, so public exploitation appears unlikely at present. The attack can be carried out by a logged‑in user who has had their access revoked, by simply issuing authenticated API requests to the above endpoints. Exposure depends on relationships or tracked‑time entries that were created before the revocation, so the data leaked is limited to what the user previously interacted with.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Check for a vendor patch or update that addresses permission re‑validation on the starred and tracked‑time endpoints.
  • If a patch is not yet available, manually audit and remove stale starred‑repository and tracked‑time records related to revoked users, and consider resetting or revoking their authentication tokens.
  • Ensure that future API implementations perform an explicit permission check before returning any data; this aligns with the correction of the CWE-284 weakness.

Generated by OpenCVE AI on October 15, 2026 at 20:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-qf2f-qh6p-7v89 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`
History
Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea
Vendors & Products Gitea
Gitea gitea
Type Values Removed Values Added
Weaknesses CWE-284
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Gitea's starred-repository and tracked-time API endpoints do not re-check current repository permissions before returning data associated with the requesting user. A user whose access to a private repository has been revoked can still retrieve repository metadata through /api/v1/user/starred and private issue titles through /api/v1/user/times. The disclosure depends on relationships or tracked-time entries created before access was revoked.
Title Gitea private repository metadata disclosure after access revocation
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Oct 14, 2026, 3:31 PM
Reserved
Jul 8, 2026, 9:19 AM
Status
Deferred
Published
Oct 14, 2026, 3:17 PM
Modified
Oct 14, 2026, 4:17 PM