CVE-2026-77918: Gogs through 0.14.4 Private Fork Disclosure via Fork Listing Endpoint
Gogs through 0.14.4 contains an information disclosure vulnerability that allows authenticated users to view private forks by querying fork listings without per-fork read checks. Attackers with read access to a private base repository can call GET /api/v1/repos/{owner}/{repo}/forks or the Forks web handler to obtain other users' private fork owners, names, descriptions and clone URLs.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated user with read access to a private base repository can exploit it. They do not need read access to the private forks belonging to other users.
What information can be disclosed?
The fork listing API endpoint and the Forks web handler can expose private fork owners, repository names, descriptions, and clone URLs.
Which interfaces are affected?
The affected interfaces are GET /api/v1/repos/{owner}/{repo}/forks and the Forks web handler. Both can return private fork details without per-fork read permission checks.
How can an administrator determine whether their deployment is affected?
Deployments running Gogs through 0.14.4 are affected. A practical check is to use an account that can read a private base repository but cannot read another user's private fork, then request that repository's fork listing and see whether the inaccessible fork is returned.