CVE-2026-58431 Public-only API token restriction is not enforced on team API routes

Medium 4.3 Published Updated

Attackers can access team API routes using public-only tokens, bypassing intended access restrictions in Gitea.

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

What is CVE-2026-58431?

CVE-2026-58431 is a medium-severity missing authorization vulnerability in Gitea Open Source Git Server, published on 13 Aug 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Public-only API token restriction is not enforced on team API routes

Weakness: CWE-863

Which versions are affected by CVE-2026-58431?

3 open source packages ship an affected version, including gitea.dev.

PackageAffectedFixed in
gitea.dev GoAll versions1.27.0
gitea.dev GoAll versions1.27.0
gitea.dev GoAll versions1.27.0

How do I fix CVE-2026-58431?

Upgrade gitea.dev to 1.27.0 or later.

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

Is CVE-2026-58431 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-58431 exists.

Sources

Also known as GHSA-h56g-4qw7-2mxg, GO-2026-6059.

Is CVE-2026-58431 in your software?

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

Check your SBOMs for free