What’s Vulnerable › Vulnerabilities
CVE-2026-52795: Gogs: Authorization Bypass in Watch API allows any user to monitor private repository activity
- Severity: medium (CVSS 4.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-06-24 · updated 2026-06-25
- Weakness: CWE-863
Description
Gogs is an open source self-hosted Git service. In 0.14.3 and earlier, any authenticated user can watch a private repository they have no access to, because the access check in the Watch API handler is inverted. The code checks if repoCtx.ViewerCanRead() (returns 404 when the user CAN read) instead of if !repoCtx.ViewerCanRead() (return 404 when the user CANNOT read). Once watching, the attacker's dashboard activity feed shows commit messages, branch names, issue titles, and PR details from the private repository. If email notifications are enabled, the attacker also receives emails containing issue and comment content.
Affected products
- gogs: through 0.14.3
References
- https://github.com/gogs/gogs/commit/d61caa3676fde060d0c03ccf815851dddc7c67e0
- https://github.com/gogs/gogs/security/advisories/GHSA-v8w7-f6gc-cqc2
- https://github.com/gogs/gogs/security/advisories/GHSA-v8w7-f6gc-cqc2
Get alerted when CVE-2026-52795 or the next vulnerability affects your stack