All vulnerabilities

Servers and applications

CVE-2026-25120

Cross-repository comment deletion

Severity
Medium 5.1
Published
14 Feb 2026
Last changed
17 Jun 2026
Added to UpHeron
1 Nov 2026
Fixed in
0.14.0
Exploit chance
0.3% in the next 30 daysHigher than 23% of CVEs. EPSS by FIRST, 19 Nov 2026
Weakness
Authorization bypass through a user-controlled key (IDOR) (CWE-639)
Attack
Over the network · Needs an administrator account · No user action needed
Attacker can
Slow it down
CVSS 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/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
Also known as
GHSA-jj5m-h57j-5gv7
Sources
NVD, Project advisories (GitHub)

Description

The POST /:owner/:repo/issues/comments/:id/delete endpoint 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 vulnerability exists due to insufficient authorization validation in the comment deletion flow:

In internal/route/repo/issue.go, the function retrieves a comment by ID without verifying repository ownership:

In internal/database/comment.go, the deletion function performs no repository validation:

  • Two users: Alice (attacker) and Bob (victim)
  • Alice is admin of alice/attacker-repo
  • Bob has created an issue with a comment on bob/victim-repo
  • Attacker needs to obtain the comment ID from victim's repository (e.g., ID: 42)
From gogs/gogs's security advisory.

Affected software

SoftwareAffected versions
GogsServers and applications · cpe:a:gogs:gogs
  • Every version before 0.14.0
GogsServers and applications · github:gogs/gogs
  • Every version before 0.14.0

About Gogs

free forge based on Git written in Go

From Wikidata, CC0 1.0.
Docker Hub pulls
94,040,857Docker Hub, 15 Nov 2026
GitHub stars
47,939GitHub, 15 Nov 2026
Forks
5,082GitHub, 15 Nov 2026
Latest release
v0.14.4GitHub, 15 Nov 2026
Released
12 Nov 2026GitHub
Developer
FLOSS contributorWikidata
License
Expat licenseWikidata
Written in
Go, Cascading Style Sheets, JavaScriptWikidata
First released
11 Feb 2014Wikidata
First published on GitHub
12 Feb 2014GitHub

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2026-25120
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-25120
  • GitHub Advisory Database https://github.com/advisories/GHSA-jj5m-h57j-5gv7
  • github.com https://github.com/gogs/gogs/security/advisories/GHSA-jj5m-h57j-5gv7