Gitea versions before 1.25.5 have insufficient permission checks for updating or rebasing pull request branches.
https://github.com/go-gitea/gitea/releases/tag/v1.25.5
https://github.com/go-gitea/gitea/pull/36838
https://github.com/go-gitea/gitea/pull/36465