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

Published Jun 24, 2026
·
Updated

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 Software

1 affected component
Gogs Gogs<=0.14.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Gogs to a version that resolves this vulnerability.

    Fixed in 0.14.3

Event History

Jun 24, 2026
CVE Published
via MITRE·08:06 PM
Data Sourced
via MITRE·08:06 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:16 PM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-52795?

The severity of CVE-2026-52795 is medium with a score of 4.3.

2

What impact does CVE-2026-52795 have on private repositories?

CVE-2026-52795 allows any authenticated user to watch a private repository they do not have access to.

3

How can I determine if I'm affected by CVE-2026-52795?

You are affected by CVE-2026-52795 if you are using Gogs version 0.14.3 or earlier.

4

How do I fix CVE-2026-52795?

To fix CVE-2026-52795, update Gogs to the latest version that addresses this vulnerability.

5

What is the main vulnerability in CVE-2026-52795?

The main vulnerability in CVE-2026-52795 is an authorization bypass in the Watch API handler due to an inverted access check.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203