Cloudanix VulnDB

CVE-2025-65852

High · 8.1

Gogs has authorization bypass in repository deletion API

CVSS

8.1

EPSS

—

Published

Feb 6, 2026

CISA due date

—

The record

The DELETE /api/v1/repos/:owner/:repo endpoint lacks necessary permission validation middleware. Consequently, any user with read access (including read-only collaborators) can delete the entire repository. This vulnerability stems from the API route configuration only utilizing the repoAssignment() middleware (which only verifies read access) without enforcing reqRepoOwner() or reqRepoAdmin().

Affected packages

Ecosystem Package Introduced Fixed
Go gogs.io/gogs 0 No fix
Go gogs.io/gogs 0 0.13.4
openSUSE:Leap 15.6 govulncheck-vulndb 0 0.0.20260226T182644-150000.1.149.1

Related vulnerabilities