CVE-2026-58429: Gitea · Public-Only Personal access tokens scope bypass in Organization and Permission Endpoints
Affects code.gitea.io/giteaSource GCVE Database
Not known to be exploited · CVSS 4.9 Medium : upgrade to 1.27.0 when convenient.
Data as of 4 Dec 2026, 18:37 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 38% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 1.27.0
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:NExploitation evidence
t = 0 is the CVE’s publication on cve.org
Disclosed: evidence found.
CVE published 13 Aug 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: evidence found.
CISA SSVC: proof of concept public
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
Timeline
CVE ID reserved
by Gitea Limited
, 44 days before disclosure
CVE published
on cve.org
, t = 0
CISA SSVC assessment
proof of concept public
, 25 hours after disclosure
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), CISA SSVC, the Metasploit, Exploit-DB and nuclei-templates index as of 5 Dec 2026.
What to do
Upgrade code.gitea.io/gitea and gitea.dev to 1.27.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Gocode.gitea.io/gitea | Affected
| Fixed in
|
Gogitea.devpkg:golang/gitea.devOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch fixing this vulnerability is available in Gitea version 1.27.0. Users and administrators should upgrade to version 1.27.0 or later to remediate this issue. Until patched, tokens with public-only scope should be treated as potentially exposing private organization membership and permission details for the token owner. No other specific mitigations are indicated by the vendor advisory.
Description
A vulnerability in Gitea prior to version 1.27.0 allows personal access tokens restricted to the public-only scope to bypass intended access controls and retrieve private organization membership and permission details for the token owner's account. This occurs because certain API endpoints do not consistently enforce the public-only token restriction, exposing private organization data indirectly. The issue affects endpoints such as GET /api/v1/user/orgs and GET /api/v1/users/{username}/orgs/{org}/permissions, while direct access to private organizations remains blocked. A fix is available in Gitea version 1.27.0.
References
- github.com/go-gitea/gitea/security/advisories/GHSA-fq2p-5p22-8g6j (opens in a new tab)
- github.com/go-gitea/gitea/pull/37118 (opens in a new tab)
- github.com/go-gitea/gitea/pull/37773 (opens in a new tab)
- github.com/go-gitea/gitea/commit/a34eac5ef42ada433a7c7dafb98f15c13d7ad74e (opens in a new tab)
- github.com/go-gitea/gitea/commit/f2a1271f164569264c378fad720b0c000fff3336 (opens in a new tab)
- github.com/go-gitea/gitea (opens in a new tab)
- github.com/go-gitea/gitea/releases/tag/v1.27.0 (opens in a new tab)