code.gitea.io/gitea · Gitea: API Fork Endpoint Authorization Bypass Allows Organization Members to Bypass Repository Creation Restrictions
Affects code.gitea.io/giteaSource GCVE Database
CVSS 5.3 Medium : upgrade to 1.26.0 when convenient.
Data as of 22 Jul 2026, 00:51 UTC
- Patch
- Available – fixed in 1.26.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:NWhat to do
Upgrade code.gitea.io/gitea to 1.26.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Gocode.gitea.io/gitea | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in Gitea version 1.26.0 and later. Users should upgrade to version 1.26.0 or above to ensure the API fork endpoint enforces the correct repository creation permissions. Until upgraded, organizations should be aware that members with restricted repository creation rights can bypass these restrictions via the API fork endpoint.
Description
Gitea contains an authorization bypass vulnerability in its API fork endpoint that allows organization members to create repositories despite restrictions. The API endpoint for forking repositories into organizations only checks if the user is a member, not whether they have permission to create repositories. This contrasts with the web UI and other API endpoints that enforce stricter repository creation permissions. The issue affects Gitea versions prior to 1.26.0. Exploiting this flaw allows unauthorized repository creation within organizations, potentially increasing attack surface depending on organizational configurations.
References
- github.com/go-gitea/gitea/security/advisories/GHSA-rjvx-x5h2-6px5 (opens in a new tab)
- github.com/go-gitea/gitea/pull/36950 (opens in a new tab)
- github.com/go-gitea/gitea/commit/686d10b7f0c26baf91171124b382cbcdfa7bf025 (opens in a new tab)
- github.com/go-gitea/gitea (opens in a new tab)
- github.com/go-gitea/gitea/releases/tag/v1.26.0 (opens in a new tab)