Description
GHSA-8fwc-qjw5-rvgp ClearRepoWatches fix not applied to API EditRepo path — sister code path retains stale watches on public->private
Published: 2026-08-13
Score: 4.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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 not provided 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.

Generated by OpenCVE AI on August 13, 2026 at 19:17 UTC.

Remediation

No vendor fix or workaround currently provided.

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 19:17 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

Thu, 13 Aug 2026 20:30:00 +0000

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'}


Thu, 13 Aug 2026 19:15:00 +0000

Type Values Removed Values Added
First Time appeared Gitea
Gitea gitea Open Source Git Server
Vendors & Products Gitea
Gitea gitea Open Source Git Server

Thu, 13 Aug 2026 17:00:00 +0000

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

Subscriptions

Gitea Gitea Open Source Git Server
cve-icon MITRE

Status: PUBLISHED

Assigner: Gitea

Published:

Updated: 2026-08-13T19:14:00.411Z

Reserved: 2026-07-08T09:19:08.744Z

Link: CVE-2026-58510

cve-icon Vulnrichment

Updated: 2026-08-13T19:13:15.471Z

cve-icon NVD

Status : Received

Published: 2026-08-13T17:17:28.860

Modified: 2026-08-13T20:17:23.107

Link: CVE-2026-58510

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T19:30:03Z

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