Description
`DELETE /api/v1/orgs/{org}/repos` deletes all repositories of an organization, but it did not enforce the public-only restriction of access tokens: the route only checked that the organization itself was public. A public-only token of an owner of a public organization could therefore permanently delete the organization's private repositories, which such a token must not reach. Routes that require organization ownership now reject public-only tokens.
References
- https://blog.gitea.com/release-of-28.3.0/
- https://github.com/go-gitea/gitea/pull/39690
- https://github.com/go-gitea/gitea/pull/39853
- https://github.com/go-gitea/gitea/releases/tag/v28.3.0
- https://github.com/go-gitea/gitea/security/advisories/GHSA-jh8p-x4ch-389q
Collected automatically from public sources. Verify affected versions and fixes in the vendor's notice before acting.