CVE-2026-24791 Public-only tokens bypass private-resource restrictions on `/api/v1/user` self routes
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.
| Package | Affected | Fixed in |
|---|---|---|
code.gitea.io/gitea Go | From 1.22.3 | 1.26.2 |
code.gitea.io/gitea Go | From 1.22.3 | 1.26.2 |
code.gitea.io/gitea Go | From 1.22.3 | 1.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.