CVE-2026-25120: Gogs Allows Cross-Repository Comment Deletion via DeleteComment
Vulnerability summary
CVE-2026-25120 is a medium (CVSS 5.1) vulnerability in gogs. EPSS estimates a 0.30% chance of exploitation in the next 30 days, higher than 23.4% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 5.1, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 2 · Related 2Timeline
- 19-02-2026PublishedVulnerability first disclosed.
- 19-02-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · GoEcosystem advisory · calculated5.1MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
- NVDNIST5.1MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
EPSS trend
Probability
0.30%
Chance of exploitation in the next 30 days
Percentile
23%
Versus all other CVEs
30-day change
Increase +0.02 pp
From 0.28% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundGogs
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, administrative account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Gogs1 product
- gogs< 0.14.0
Gogs.io1 product
- gogs< 0.14.0 | All versions (No fix recorded)
2 vendors · 2 products
References
4 links- github.com/gogs/gogs/security/advisories/GHSA-jj5m-h57j-5gv7X Refsource CONFIRMWEBAdvisoryExploitVendor Advisory
- github.com/gogs/gogsPACKAGE