Gitea: GHSA-8fwc-qjw5-rvgp ClearRepoWatches fix not applied to API EditRepo path — sister code path retains stale watches on public->private (CVE-2026-58510)
A vulnerability in Gitea affects the API path used to change repository visibility from public to private. When this change is made via the REST API, stale watch records are not cleared, allowing users who lost access to still see metadata of the now-private repository in their subscription list. This issue leads to exposure of repository metadata and inflated watcher counts. The problem exists in all versions from v1.25.4 up to but not including v1.27.0. The severity is medium, with limited confidentiality impact and no integrity or availability impact.
AI Analysis
Technical Summary
The vulnerability (CVE-2026-58510) arises because the fix for clearing repository watches on visibility change (public to private) was applied only to the web UI path (MakeRepoPrivate) but not to the API path (updateRepository) used by PATCH /api/v1/repos/{owner}/{repo}. Consequently, when a repository is made private via the API, watch records persist, allowing users without access to see the repository's metadata via the subscriptions endpoint and causing stale watch counts. The issue affects Gitea versions from v1.25.4 through versions before v1.27.0. The original fix mitigated release notification email leaks, but this residual issue remains due to incomplete code path coverage.
Potential Impact
Users who previously watched a public repository that is made private via the API can still see the repository listed in their subscriptions with full metadata (description, default branch, language, license, counts, etc.) despite lacking access. This results in exposure of private repository metadata (CWE-200, CWE-359) and improper preservation of permissions (CWE-281). There is no impact on integrity or availability. The issue also causes inflated watcher counts on the repository. The release notification email leak vector is mitigated by a send-time mail filter added in the original fix.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid changing repository visibility from public to private via the REST API; instead, use the web UI path (Settings → Danger Zone) which correctly clears watch records. Monitor vendor communications for updates or patches addressing this issue.
Gitea: GHSA-8fwc-qjw5-rvgp ClearRepoWatches fix not applied to API EditRepo path — sister code path retains stale watches on public->private (CVE-2026-58510)
Description
A vulnerability in Gitea affects the API path used to change repository visibility from public to private. When this change is made via the REST API, stale watch records are not cleared, allowing users who lost access to still see metadata of the now-private repository in their subscription list. This issue leads to exposure of repository metadata and inflated watcher counts. The problem exists in all versions from v1.25.4 up to but not including v1.27.0. The severity is medium, with limited confidentiality impact and no integrity or availability impact.
CVSS v3.1
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability (CVE-2026-58510) arises because the fix for clearing repository watches on visibility change (public to private) was applied only to the web UI path (MakeRepoPrivate) but not to the API path (updateRepository) used by PATCH /api/v1/repos/{owner}/{repo}. Consequently, when a repository is made private via the API, watch records persist, allowing users without access to see the repository's metadata via the subscriptions endpoint and causing stale watch counts. The issue affects Gitea versions from v1.25.4 through versions before v1.27.0. The original fix mitigated release notification email leaks, but this residual issue remains due to incomplete code path coverage.
Potential Impact
Users who previously watched a public repository that is made private via the API can still see the repository listed in their subscriptions with full metadata (description, default branch, language, license, counts, etc.) despite lacking access. This results in exposure of private repository metadata (CWE-200, CWE-359) and improper preservation of permissions (CWE-281). There is no impact on integrity or availability. The issue also causes inflated watcher counts on the repository. The release notification email leak vector is mitigated by a send-time mail filter added in the original fix.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid changing repository visibility from public to private via the REST API; instead, use the web UI path (Settings → Danger Zone) which correctly clears watch records. Monitor vendor communications for updates or patches addressing this issue.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-q423-49rw-g9mh
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-58510"]
- Ecosystems
- ["Go"]
- Database Specific Severity
- MODERATE
- Cvss Version
- 3.1
Threat ID: 6a600aa29c2644c7f8fdfcbf
Added to database: 07/22/2026, 00:11:14 UTC
Last enriched: 07/22/2026, 00:39:01 UTC
Last updated: 07/22/2026, 00:39:01 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.