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

Published Oct 14, 2026
·
Updated

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.

Affected Software

1 affected component
Gitea Gitea

Event History

Oct 14, 2026
CVE Published
via MITRE·02:36 PM
Data Sourced
via MITRE·02:36 PM
DescriptionWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An attacker needs a personal access token or OAuth application token for a user who already has permission to create repositories in the target organization. The token must have write:organization, but does not need write:repository.

2

Does this allow repository creation in organizations where the token owner lacks access?

No. Repository creation remains subject to the authorizing user's organization permissions. The issue bypasses the token's intended repository-write scope boundary, not the organization's authorization checks.

3

Which API path is affected?

The affected path is Gitea's organization repository-creation API. Other repository-creation routes enforce the write:repository token scope.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203