Authorization bypass through user-controlled key in gogs - CVE-2026-25120
Published: April 27, 2026
gogs
Detailed vulnerability description
The vulnerability allows a remote user to delete comments from other repositories.
The vulnerability exists due to authorization bypass through user-controlled key in the DeleteComment endpoint when handling comment deletion requests with user-supplied comment IDs. A remote user can send a specially crafted request with an arbitrary comment ID to delete comments from other repositories.
Exploitation requires administrative access to a repository and knowledge of a target comment ID from another repository.