CVE-2026-70396 Details
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.
A vulnerability in Gitea's organization repository creation API allows for unauthorized creation of organization-owned repositories. The API endpoint `POST /api/v1/orgs/{org}/repos` requires only the `write:organization` token scope, omitting the `write:repository` scope that is enforced on other repository creation routes. As a result, a personal access token or OAuth application token without repository write permissions can still create repositories within an organization, provided the user has the necessary organizational permissions. This issue bypasses the intended scope restrictions while remaining subject to the user's organization privileges.
Users can upgrade to Gitea version 1.27.3, which addresses this vulnerability by enforcing the correct token scopes for repository creation in organizations.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 14, 2026CISA-ADP
Assessed Oct 18, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://blog.gitea.com/release-of-1.27.3/ | Gitea Limited | Release NotesVendor |
| https://github.com/go-gitea/gitea/pull/39007 | Gitea Limited | Issue TrackingSource CodeVendor |
| https://github.com/go-gitea/gitea/pull/39014 | Gitea Limited | Issue TrackingSource CodeVendor |
| https://github.com/go-gitea/gitea/releases/tag/v1.27.3 | Gitea Limited | Release NotesVendor |
| https://github.com/go-gitea/gitea/security/advisories/GHSA-hxhc-246f-rvqc | Gitea Limited | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-863 | Incorrect Authorization | Gitea Limited |
Affected Products
| Product | Versions |
|---|---|
| Gitea | <= 1.27.2 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 18, 2026 | CVE Modified | CISA-ADP |
| Oct 14, 2026 | New CVE Received | Gitea Limited |
Volerion