CVE-2026-70400: Gitea private migration creation with public-only tokens

Published Oct 14, 2026
·
Updated

Gitea's repository migration API accepts a public-only token when the request specifies creation of a private repository. A delegated token intended to operate only on public resources can create a private repository and migration task under the authorizing account or an organization where that user has the necessary permissions. The ordinary private repository-creation route rejects the same token, but the migration path omits that restriction.

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

Which destinations can be affected by this permission bypass?

A private repository and its migration task can be created under the account that authorized the token. An organization can also be affected when the token's user has the necessary permissions in that organization.

2

What does an attacker need to trigger the issue?

They need a delegated token intended to operate only on public resources and access to the repository migration API. The migration request must specify that the destination repository is private.

3

Is the same token accepted for normal private repository creation?

No. The ordinary private repository-creation route rejects the public-only token; the missing restriction is specific to the migration path.

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