Skip to content

CVE-2026-70396 Gitea organization repository creation token scope bypass

MediumCVSS 5.4 EPSS 0.40%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
Gitea <= 1.27.2 after 1.27.2 Fixed

Affected products

ProductAffected versionsFixed in
Gitea <= 1.27.2 No fix listed

References