Advisory record · GHSA-w5pg-649r-p6gg

Gitea: Branch Protection Bypass via PR Retargeting Preserves Stale `official` Approval Flag

CVSS 8.1 HighEPSS 0.0053 · 45th percentile

Published by the GitHub Advisory Database at 21 Jul 2026, 20:14 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
code.gitea.io/giteaGo<1.27.01.27.0
Identifiers
GHSA-w5pg-649r-p6gg · CVE-2026-58439 · GO-2026-6080
Weakness (CWE)
CWE-284 · CWE-863
Published
21 Jul 2026
Updated
4 Aug 2026

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Gitea versions before 1.27.0 do not re-evaluate the "official" flag on existing pull request approvals when a pull request's target branch is changed. A user with write access to a repository can obtain an official approval on a pull request targeting an unprotected branch, then retarget it to a protected branch and merge without approval from a whitelisted reviewer. Upgrade to Gitea 1.27.0 or later. The source gives few details on workarounds.

Written 6 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
8.1 High 3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H GitHub Advisory Database
  • CISA KEV Not listed.
  • EPSS 0.0053, the 45th percentile, on 18 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 14:55 UTC First seen by agentprime
  2. 31 Oct 2026, 14:55 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.