CVE-2026-28699 Gitea Basic Auth bypasses OAuth2 access token scopes

High 8.1 Published Updated

Attackers can bypass OAuth2 access token scope restrictions by using HTTP Basic authentication, potentially gaining unauthorized access to resources.

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-28699?

CVE-2026-28699 is a high-severity authentication bypass vulnerability in Gitea Open Source Git Server, published on 3 Jul 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Gitea versions up to and including 1.26.1 allow OAuth2 access token scope enforcement to be bypassed through HTTP Basic authentication.

Weakness: CWE-863, CWE-284

Which versions are affected by CVE-2026-28699?

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

PackageAffectedFixed in
code.gitea.io/gitea GoAll versions1.26.2
code.gitea.io/gitea GoAll versions1.26.2
code.gitea.io/gitea GoAll versions1.26.2

How do I fix CVE-2026-28699?

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

Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.

Is CVE-2026-28699 being exploited?

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

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-9r5x-wg6m-x2rc, GO-2026-5299.

Is CVE-2026-28699 in your software?

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

Check your SBOMs for free