CSIRTS // UNIFIED SECURITY ADVISORY FEEDSYS ● ONLINE · POWERED BY INTELFUSIONS.COM

GHSA-268j-37xf-pp52: Gogs's write-level collaborators can mutate admin-only repository settings via API

highCVSS 7.1CVE-2026-52808
Summary Three API endpoints — PATCH /api/v1/repos/:owner/:repo/issue-tracker, PATCH /api/v1/repos/:owner/:repo/wiki, and POST /api/v1/repos/:owner/:repo/mirror-sync — are gated by reqRepoWriter() rather than reqRepoAdmin(). The equivalent operations in the web UI sit behind reqRepoAdmin, which requires AccessMode >= AccessModeAdmin. A write-level collaborator (who has AccessMode == AccessModeWrite < AccessModeAdmin) can therefore call these API endpoints directly to disable the native issue tracker or wiki, inject attacker-controlled external tracker/wiki URLs that redirect all repository visitors, or trigger mirror sync — none of which they are authorized to do. Severity High (CVSS 3.1: 7.1) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:L - Attack Vector: Network — the API endpoints are reachable over HTTP/S. - Attack Complexity: Low — a single API call is sufficient; no chaining or race condition required. - Privileges Required: Low — only write-level collaborator access to the targeted repository is needed. The attacker does not need repo-admin or site-admin privileges. - User Interaction: None — the attacker acts unilaterally. - Scope: Unchanged — the impact is contained to the targeted repository's settings and its visitors. - Confidentiality Impact: None — the attacker does not read confidential data directly. - Integrity Impact: High — the attacker permanently mutates repository configuration, including injecting an external URL that redirects all visitors who click the Issues or Wiki tabs to an attacker-controlled site. - Availability Impact: Low — disabling the native issue tracker or wiki reduces the availability of those features for all repository participants. Affected component - internal/route/api/v1/api.go — route registration (lines 365–367) - internal/route/api/v1/repo_repo.go — issueTracker() (line 400), wiki() (line 437), mirrorSync() (line 463) CWE - CWE-863: Incorrect Authorization - CWE-269: Improper Privilege Management Description Th

Details

Source
GitHub Security Advisories (INTL · database · site)
Severity
high — CVSS 7.1
Published
2026-06-23
Last updated
2026-07-21
Exploitation
Not in CISA KEV at last sync

Original advisory: https://github.com/advisories/GHSA-268j-37xf-pp52

Exploitation outlook

EPSS (FIRST.org) estimates each CVE’s probability of exploitation in the next 30 days — here is the CSIRTS.com read on those numbers.

Referenced CVEs

CVECSIRTS overviewExternal
CVE-2026-52808coverage & exploitation statusNVD · CVE.org

More from GitHub Security Advisories