CVE-2026-25120
Description
Gogs is an open source self-hosted Git service. In versions 0.13.4 and below, the DeleteComment API does not verify that the comment belongs to the repository specified in the URL. This allows a repository administrator to delete comments from any other repository by supplying arbitrary comment IDs, bypassing authorization controls. The DeleteComment function retrieves a comment by ID without verifying repository ownership and the Database function DeleteCommentByID performs no repository validation. This issue has been fixed in version 0.14.0.
How to fix
- gogs gogs0.14.0 or later
- gogs.io/gogs0.14.0 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| gogs gogs | v < 0.14.0 | 0.14.0 |
| gogs.io/gogsGo | v < 0.14.0, No range specified | 0.14.0 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.