CVE-2026-28699 Gitea Basic Auth bypasses OAuth2 access token scopes
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.
Which versions are affected by CVE-2026-28699?
3 open source packages ship an affected version, including code.gitea.io/gitea.
| Package | Affected | Fixed in |
|---|---|---|
code.gitea.io/gitea Go | All versions | 1.26.2 |
code.gitea.io/gitea Go | All versions | 1.26.2 |
code.gitea.io/gitea Go | All versions | 1.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.