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

Medium 5.4 Published Updated

Attackers with public-only tokens can create private repositories via the migration API, bypassing intended access restrictions.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-70400?

CVE-2026-70400 is a medium-severity missing authorization vulnerability in Gitea, published on 14 Oct 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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.

Weakness: CWE-863

Which versions are affected by CVE-2026-70400?

How do I fix CVE-2026-70400?

No fix has been published for CVE-2026-70400 yet. Limit exposure of the affected software until one is available.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2026-70400 being exploited?

There is no known exploitation of CVE-2026-70400 in the wild and no public exploit code.

Sources

Also known as GHSA-x58h-3mx5-q44r.

Is CVE-2026-70400 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free