Improper access control in Gitea - CVE-2026-24451
Published: June 22, 2026
Gitea
Detailed vulnerability description
The vulnerability allows a remote user to disclose sensitive information.
The vulnerability exists due to improper access control in the POST /api/v1/repos/{owner}/{repo}/merge-upstream endpoint when synchronizing a fork with its parent repository after the parent repository has been changed from public to private. A remote user can call the merge-upstream API on a previously created fork to disclose sensitive information.
The issue only affects repositories that were forked while the parent repository was public, and only content synchronized into the fork after the visibility change becomes exposed.