CVE-2026-20904 Gitea: Broken access control in OpenID visibility toggle enables cross-user visibility changes

Medium 6.5 Published Updated

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.

Weakness: CWE-639, CWE-284

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.

PackageAffectedFixed in
github.com/go-gitea/gitea GoAll versions1.25.4
github.com/go-gitea/gitea GoAll versions1.25.4
gitea BitnamiAll versions1.25.4
code.gitea.io/gitea GoAll versions1.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.

All Gitea Gitea vulnerabilities

Sources

Also known as BIT-gitea-2026-20904, GHSA-jrpc-w85r-hgqx, GHSA-qqgv-v353-cv8p, GO-2026-4369.

Is CVE-2026-20904 in your software?

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

Check your SBOMs for free