CVE-2026-20904 Gitea: Broken access control in OpenID visibility toggle enables cross-user visibility changes
An authenticated user can modify the visibility settings of other users' OpenID identities due to improper ownership validation.
- 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-20904?
CVE-2026-20904 is a medium-severity missing authorization vulnerability in Gitea Gitea, published on 22 Jan 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Gitea does not properly validate ownership when toggling OpenID URI visibility. An authenticated user may be able to change the visibility settings of other users' OpenID identities.
Which versions are affected by CVE-2026-20904?
4 open source packages ship an affected version, including github.com/go-gitea/gitea, gitea and code.gitea.io/gitea. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/go-gitea/gitea Go | All versions | 1.25.4 |
github.com/go-gitea/gitea Go | All versions | 1.25.4 |
gitea Bitnami | All versions | 1.25.4 |
code.gitea.io/gitea Go | All versions | 1.25.4 |
Products include Gitea Gitea.
How do I fix CVE-2026-20904?
Upgrade github.com/go-gitea/gitea to 1.25.4 or later.
Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.
Is CVE-2026-20904 being exploited?
There is no known exploitation of CVE-2026-20904 in the wild and no public exploit code.
Other vulnerabilities in Gitea Gitea
Sources
Also known as BIT-gitea-2026-20904, GHSA-jrpc-w85r-hgqx, GHSA-qqgv-v353-cv8p, GO-2026-4369.