CVE-2026-118395: Gitea public-only token bypass in repository and organization creation
Affects GiteaSource CVE Database V5
Not known to be exploited : upgrade to 28.3.0 soon.
Data as of 1 Nov 2026, 10:07 UTC
Rated High by Threat Radar's AI analysis · CVSS not yet scored by NVD
Thin evidence
One scorer or none- Patch
- Available – fixed in 28.3.0
Exploitation evidence
Disclosed: evidence found.
CVE published 1 Nov 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
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
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Oct 2026.
What to do
Upgrade Gitea and go-gitea/gitea to 28.3.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Giteagitea.dev | Affected
| Fixed in
|
GitHubgo-gitea/giteapkg:github/go-gitea/giteaOther 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
Upgrade Gitea to version 28.3.0 or later, where this vulnerability is fixed. No other mitigation is required as the issue is resolved in the official fix.
Description
Gitea versions prior to 28.3.0 contain a vulnerability where personal access tokens restricted to public resources ('public-only') can bypass intended restrictions and create private repositories and organizations. This occurs because certain API endpoints still accept these tokens for creating private repositories and organizations, despite the tokens being limited to public resource access. The tokens cannot read the private repositories they create. The issue was fixed in version 28.3.0.
References
- github.com/go-gitea/gitea/security/advisories/GHSA-x5v4-836g-f95x (opens in a new tab)
- github.com/go-gitea/gitea/pull/39690 (opens in a new tab)
- github.com/go-gitea/gitea/pull/39853 (opens in a new tab)
- blog.gitea.com/release-of-28.3.0/ (opens in a new tab)
- github.com/go-gitea/gitea/releases/tag/v28.3.0 (opens in a new tab)