Gitea: Branch Protection Bypass via PR Retargeting Preserves Stale `official` Approval Flag in go-gitea/gitea
Published 27 Jul 2026 · Updated 27 Jul 2026
Is your project on an affected code.gitea.io/gitea?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- All versions
- Fixed in
- No fix released
Details
Gitea: Branch Protection Bypass via PR Retargeting Preserves Stale official Approval Flag in go-gitea/gitea.
NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.
(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)
The additional affected modules and versions are: code.gitea.io/gitea before v1.27.0.
Is GO-2026-6080 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected code.gitea.io/gitea, and gives you the command that fixes it.
More advisories for code.gitea.io/gitea
- LowCVE-2026-25782Gitea tracked-time deletion is not scoped to the requested issue in code.gitea.io/gitea · 10 Sept 2026
- LowCVE-2026-26292Gitea LFS mirror operations bypass migration HTTP transport protections in code.gitea.io/gitea · 10 Sept 2026
- LowCVE-2026-27779Gitea forwarded-proto validation allows canonical URL spoofing in code.gitea.io/gitea · 10 Sept 2026
- LowCVE-2026-27780Gitea pre-receive hook scanner errors allow branch-protection bypass in code.gitea.io/gitea · 10 Sept 2026
- LowCVE-2026-27660Gitea draft releases and attachments are exposed without write permission in code.gitea.io/gitea · 10 Sept 2026
- LowCVE-2026-60004Gitea: Remote Code Execution via diffpatch Git Hook Installation in gitea.dev · 10 Sept 2026
References
- Advisorygithub.com/go-gitea/gitea/security/advisories/GHSA-w5pg-649r-p6gg
- Linkgithub.com/go-gitea/gitea/commit/74ad781db9c37134ee9280c69a6b1de53801503e
- Linkgithub.com/go-gitea/gitea/commit/8401fe7c544abff1ecc49d7f3166fd4ee0c174ef
- Linkgithub.com/go-gitea/gitea/pull/38319
- Linkgithub.com/go-gitea/gitea/pull/38402
- Linkgithub.com/go-gitea/gitea/releases/tag/v1.27.0
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.