CVE-2026-20706 Gitea repository archive downloads bypass token scope checks
Attackers can bypass token scope checks to download repository archives, potentially accessing unauthorized data in Gitea.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-20706?
CVE-2026-20706 is a critical missing authorization vulnerability in Gitea Open Source Git Server, published on 3 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Gitea versions up to and including 1.26.1 allow repository archive downloads to bypass token scope checks on the web archive download endpoint.
Weakness: CWE-284
Which versions are affected by CVE-2026-20706?
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-20706?
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-20706 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-20706 exists.
Sources
Also known as GHSA-cr4g-f395-h25h, GO-2026-5334.