Gitea versions before 1.25.5 have insufficient visibility checks in organization permission APIs for hidden members and private organizations.
https://github.com/go-gitea/gitea/releases/tag/v1.25.5
https://github.com/go-gitea/gitea/pull/36841
https://github.com/go-gitea/gitea/pull/36798