CVE-2026-70396GHSA-hxhc-246f-rvqc
Gitea organization repository creation token scope bypass
Gitea Gitea
CVSS
5.4MediumExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.40%Chance of exploitation activity in the next 30 days, higher than 33% of CVEs. Scored 23 Oct 2026FIRST EPSS
What fixes it
- 1.27.3code.gitea.io/gitea, otherGitHub
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
Gitea's organization repository-creation API requires write:organization but omits the write:repository token scope enforced by other repository-creation routes. A personal access token or OAuth application token without repository-write scope can therefore create organization-owned repositories if the authorizing user has permission to do so. This bypasses the token's delegated scope boundary while remaining subject to the user's organization permissions.
Text from CVE List
Affected versions 2
- Giteaaffected: all versions through 1.27.2CVE List
- code.gitea.io/gitea, other<= 1.27.2GitHub
References 5
- github.com/go-gitea/gitea/pull/39007Fixvia CVE List
- github.com/go-gitea/gitea/pull/39014Fixvia CVE List
- github.com/go-gitea/gitea/releases/tag/v1.27.3Fixvia CVE List
- github.com/go-gitea/gitea/security/advisories/GHSA-hxhc-246f-rvqcAdvisoryvia CVE List
- blog.gitea.com/release-of-1.27.3/Referencevia CVE List