Improper Preservation of Permissions in Gitea - CVE-2026-58510
Published: July 14, 2026
Vulnerability details
The vulnerability allows a remote user to disclose sensitive information.
The vulnerability exists due to improper preservation of permissions in the updateRepository helper when processing API requests that change a repository from public to private. A remote user can use the REST API to make a watched public repository private without clearing stale watch records to disclose sensitive information.
The issue affects the API path PATCH /api/v1/repos/{owner}/{repo}; stale watch records can expose the private repository through the subscriptions endpoint and keep the visible watch count inflated.