Vulnerability · Published Feb 19, 2026 · Assigned by GitHub_M
CVE-2026-25120Gogs Allows Cross-Repository Comment Deletion via DeleteComment
Medium 5.1
In plain English
A medium-severity authorization bypass via user-controlled key in gogs from gogs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 23% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | gogs.io/gogs | 0.14.0 | GHSA-jj5m-h57j-5gv7 |
| Go | gogs.io/gogs | no fix listed | GO-2026-4501 |
Affected products (as reported)
Weakness: CWE-639 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
References
- https://github.com/gogs/gogs/security/advisories/GHSA-jj5m-h57j-5gv7 x_refsource_CONFIRM
- https://github.com/gogs/gogs/commit/1b226ca48dc8b3e95cc1c41229d72819c960a1b7 x_refsource_MISC