Skip to content

CVE-2026-52795 Gogs: Authorization Bypass in Watch API allows any user to monitor private repository activity

MediumCVSS 4.3 EPSS 0.28%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial

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.

Upgrade path

1 package: 0 fixed.

PackageAffectedFixed inStatus
gogs = <= 0.14.3 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
gogs = <= 0.14.3 No fix listed

References