Moderate severityNVD Advisory· Published Feb 19, 2026· Updated Feb 19, 2026
Gogs Allows Cross-Repository Comment Deletion via DeleteComment
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
gogs.io/gogsGo | < 0.14.0 | 0.14.0 |
Affected products
3- ghsa-coords2 versions
< 0.14.0+ 1 more
- (no CPE)range: < 0.14.0
- (no CPE)range: < 0.0.20260226T182644-150000.1.149.1
Patches
Vulnerability mechanics
References
4- github.com/advisories/GHSA-jj5m-h57j-5gv7ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-25120ghsaADVISORY
- github.com/gogs/gogs/commit/1b226ca48dc8b3e95cc1c41229d72819c960a1b7ghsax_refsource_MISCWEB
- github.com/gogs/gogs/security/advisories/GHSA-jj5m-h57j-5gv7ghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.