Improper access control in gogs - CVE-2026-25229
Published: April 27, 2026
gogs
Detailed vulnerability description
The vulnerability allows a remote user to modify labels belonging to other repositories.
The vulnerability exists due to improper access control in the UpdateLabel function in the Web UI label update endpoint when handling label edit requests. A remote user can send a specially crafted request with the ID of a label from another repository to modify labels belonging to other repositories.
Only the Web UI endpoint POST /:username/:reponame/labels/edit is affected; the API EditLabel, NewLabel, and DeleteLabel paths use repository-scoped label operations.