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

Medium 5.4 Published Updated

Attackers can bypass token scope restrictions to create organization repositories using tokens lacking repository-write permissions.

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-70396?

CVE-2026-70396 is a medium-severity 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 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.

Weakness: CWE-863

Which versions are affected by CVE-2026-70396?

How do I fix CVE-2026-70396?

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

Is CVE-2026-70396 being exploited?

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

Sources

Also known as GHSA-hxhc-246f-rvqc.

Is CVE-2026-70396 in your software?

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

Check your SBOMs for free