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

- Severity: Medium 4.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-24T20:06:15.058Z
- Modified: 2026-06-25T16:16:38.533Z
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gogs gogs: <= 0.14.3

## References

- <https://github.com/gogs/gogs/security/advisories/GHSA-v8w7-f6gc-cqc2> (exploit)
- <https://github.com/gogs/gogs/commit/d61caa3676fde060d0c03ccf815851dddc7c67e0>

## Sources

- CVE List: [CVE-2026-52795](https://www.cve.org/CVERecord?id=CVE-2026-52795), CVE Terms of Use, modified 2026-06-25
- NVD: [CVE-2026-52795](https://nvd.nist.gov/vuln/detail/CVE-2026-52795), Public domain, modified 2026-06-25

---

Page: https://cve.day/CVE-2026-52795 · Whole record: https://cve.day/CVE-2026-52795.json · Rebuilt by cve.day 2026-11-25T22:59:25.740Z
