CVE-2026-58439 Branch Protection Bypass via PR Retargeting Preserves Stale `official` Approval Flag
Attackers can bypass branch protection rules by retargeting pull requests, preserving stale approval flags and merging unauthorized code.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-58439?
CVE-2026-58439 is a high-severity vulnerability in Gitea Open Source Git Server, published on 13 Aug 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Branch Protection Bypass via PR Retargeting Preserves Stale `official` Approval Flag
Weakness: CWE-284
Which versions are affected by CVE-2026-58439?
3 open source packages ship an affected version, including code.gitea.io/gitea.
| Package | Affected | Fixed in |
|---|---|---|
code.gitea.io/gitea Go | All versions | None |
code.gitea.io/gitea Go | All versions | 1.27.0 |
code.gitea.io/gitea Go | All versions | 1.27.0 |
How do I fix CVE-2026-58439?
Upgrade code.gitea.io/gitea to 1.27.0 or later.
Is CVE-2026-58439 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-58439 exists.
Sources
Also known as GHSA-w5pg-649r-p6gg, GO-2026-6080, MINI-jjh9-vp8x-7mq3, MINI-w6mm-m4g8-65r4.