CVE-2026-24791 Public-only tokens bypass private-resource restrictions on `/api/v1/user` self routes

High 8.1 Published Updated

Attackers with public-only tokens can access private user resources on self routes, bypassing intended authorization 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-24791?

CVE-2026-24791 is a high-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 tokens bypass private-resource restrictions on `/api/v1/user` self routes

Weakness: CWE-863

Which versions are affected by CVE-2026-24791?

3 open source packages ship an affected version, including code.gitea.io/gitea.

PackageAffectedFixed in
code.gitea.io/gitea GoFrom 1.22.31.26.2
code.gitea.io/gitea GoFrom 1.22.31.26.2
code.gitea.io/gitea GoFrom 1.22.31.26.2

How do I fix CVE-2026-24791?

Upgrade code.gitea.io/gitea to 1.26.2 or later.

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

Is CVE-2026-24791 being exploited?

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

Sources

Also known as GHSA-wrr5-99h5-gq57, GO-2026-5721.

Is CVE-2026-24791 in your software?

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

Check your SBOMs for free