Incorrect authorization in Gitea - CVE-2026-70396
Published: August 31, 2026
Vulnerability details
The vulnerability allows a remote user to create unauthorized organization-owned repositories.
The vulnerability exists due to improper access control in the organization repository creation endpoint when handling POST requests to /api/v1/orgs/{org}/repos. A remote user can send a crafted API request using a token scoped only to write:organization to create unauthorized organization-owned repositories.
Exploitation requires that the authorizing user has organization create-repository permission, and the issue does not bypass organization membership or disclose existing private repository contents.