CVE-2026-58443: Gitea · Public-only repository tokens can update private PR head branches
Affects code.gitea.io/giteaSource GCVE Database
Not known to be exploited · CVSS 9.1 Critical : upgrade to 1.27.0 as a priority.
Data as of 4 Dec 2026, 18:37 UTC
- EPSS
- 0.7% chance of exploitation in 30 days – higher than 54% 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:N/UI:N/S:U/C:N/I:H/A:HExploitation 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
, 27 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 fix is available in Gitea version 1.27.0. Users should upgrade to version 1.27.0 or later to remediate this vulnerability. Until upgraded, avoid using public-only tokens with write permissions on repositories that have private pull request head branches. No other specific mitigations are indicated by the vendor advisory.
Description
Gitea versions prior to 1.27.0 have a vulnerability where a public-only repository token with write permissions can update private pull request head branches via a public base repository route. This occurs because the public-only restriction is checked only against the public base repository, not the private head repository, allowing unauthorized updates to private branches. The issue is tracked as CVE-2026-58443 and has a high CVSS score of 9.6.