Incorrect authorization in Gitea - CVE-2026-58443
Published: July 14, 2026
Vulnerability details
The vulnerability allows a remote user to modify a private pull request head branch.
The vulnerability exists due to incorrect authorization in the pull request update endpoint when handling update requests for a pull request from a public base repository to a private head repository. A remote user can send a specially crafted update request to modify a private pull request head branch.
Exploitation requires a valid public-only,write:repository token for a user who has normal write permission to the private head branch. When Actions is enabled on the private head repository, the server-side push also triggers matching push workflows.