Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

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)

0
Medium
Published: 07/21/2026 (07/21/2026, 21:51:41 UTC)
Source: GCVE Database
Product: code.gitea.io/gitea

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N

Affected software

Goghsa
code.gitea.io/gitea
Affected versions
<1.27.0

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

AILast updated: 07/22/2026, 00:39:01 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses