Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. gogs.io/gogs
  4. ›
  5. CVE-2026-25120

CVE-2026-25120: Gogs Allows Cross-Repository Comment Deletion via DeleteComment

February 17, 2026 (updated February 19, 2026)

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.

References

  • github.com/advisories/GHSA-jj5m-h57j-5gv7
  • github.com/gogs/gogs
  • github.com/gogs/gogs/commit/1b226ca48dc8b3e95cc1c41229d72819c960a1b7
  • github.com/gogs/gogs/security/advisories/GHSA-jj5m-h57j-5gv7
  • nvd.nist.gov/vuln/detail/CVE-2026-25120

Code Behaviors & Features

Detect and mitigate CVE-2026-25120 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.14.0

Fixed versions

  • 0.14.0

Solution

Upgrade to version 0.14.0 or above.

Impact 2.7 LOW

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-639: Authorization Bypass Through User-Controlled Key

Source file

go/gogs.io/gogs/CVE-2026-25120.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 25 Mar 2026 00:19:01 +0000.