CVE-2026-58439 Branch Protection Bypass via PR Retargeting Preserves Stale `official` Approval Flag

High 8.1 Published Updated

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.

PackageAffectedFixed in
code.gitea.io/gitea GoAll versionsNone
code.gitea.io/gitea GoAll versions1.27.0
code.gitea.io/gitea GoAll versions1.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.

Is CVE-2026-58439 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free