CVE-2026-58510

GHSA-8fwc-qjw5-rvgp ClearRepoWatches fix not applied to API EditRepo path — sister code path retains stale watches on public->private

Published Aug 13, 2026 CVSS 3.1 · 4.3 Medium EPSS < 1% KEV · Not listed
Description
GHSA-8fwc-qjw5-rvgp ClearRepoWatches fix not applied to API EditRepo path — sister code path retains stale watches on public->private

Analysis

AI-generated

Technical impact

A flaw in Gitea’s repository edit API causes a bug where the ClearRepoWatches patch is not applied to the EditRepo endpoint. When a repository is changed from public to private, the code path that handles the visibility change retains the old watch list instead of clearing it. This behavior can allow users who were watchers of the public repository to remain listed as watchers after the repository becomes private, potentially exposing private repository visibility or triggering unintended notifications.

Affected Systems

The vulnerability affects the Gitea Open Source Git Server. No specific affected version range is listed in the CNA data, so any deployment prior to the fix may be vulnerable. The fix was included in the release of Gitea 1.27.0, which can be found in the referenced release notes.

Risk and Exploitability

The CVSS score is 4.3 and EPSS is unavailable, indicating that public exploitation data is sparse. The vulnerability is listed as not in the CISA KEV catalog. The likely attack vector is the API EditRepo path, which requires an authenticated request with repository edit privileges. An attacker who can alter a repository’s visibility could use this path to create scenarios where private repositories retain stale watcher entries, potentially leaking information about who had previously accessed the repository.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Gitea to version 1.27.0 or later to apply the ClearRepoWatches fix.
  • Audit repositories that have been converted from public to private to identify and manually remove any stale watchers that remain after the visibility change.
  • Review and test the EditRepo API behavior to confirm that watcher lists are correctly cleared when changing repository visibility, ensuring that no unintended disclosures occur.

Generated by OpenCVE AI on August 13, 2026 at 22:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-q423-49rw-g9mh Gitea: GHSA-8fwc-qjw5-rvgp ClearRepoWatches fix not applied to API EditRepo path — sister code path retains stale watches on public->private
History
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea Open Source Git Server
Vendors & Products Gitea
Gitea gitea Open Source Git Server
Type Values Removed Values Added
Description GHSA-8fwc-qjw5-rvgp ClearRepoWatches fix not applied to API EditRepo path — sister code path retains stale watches on public->private
Title GHSA-8fwc-qjw5-rvgp ClearRepoWatches fix not applied to API EditRepo path — sister code path retains stale watches on public->private
Weaknesses CWE-200
CWE-281
CWE-359
References
Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

  • CWE-281

    Improper Preservation of Permissions

  • CWE-359

    Exposure of Private Personal Information to an Unauthorized Actor

Sources

Status
PUBLISHED
Assigner
Gitea
Published
Updated
Aug 13, 2026, 7:14 PM
Reserved
Jul 8, 2026, 9:19 AM
Status
Deferred
Published
Aug 13, 2026, 5:17 PM
Modified
Aug 26, 2026, 4:53 PM