Improper Authorization in Gitea - CVE-2026-58439
Published: July 14, 2026
Vulnerability details
The vulnerability allows a remote user to bypass branch protection and merge changes into a protected branch without legitimate maintainer approval.
The vulnerability exists due to improper access control in pull request review approval handling when changing a pull request's target branch. A remote user can obtain an approval on an unprotected branch and retarget the pull request to a protected branch to bypass branch protection and merge changes into a protected branch without legitimate maintainer approval.
Exploitation requires write access to the repository and the ability to obtain an approval from a non-whitelisted account before retargeting the pull request.