Vulnerability · Published Jul 3, 2026 · Assigned by Gitea
CVE-2026-20779Gitea TOTP single-use enforcement defect allows OTP replay
High 7.1
In plain English
A high-severity security flaw in Gitea Open Source Git Server from Gitea. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 42% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.1High
Exploit odds (30 days)0.5%top 57.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official description
Gitea versions from 1.5.0 before 1.26.3 have a TOTP single-use enforcement defect that allows a valid TOTP code to be accepted more than once across web two-factor authentication flows and the Basic Auth X-Gitea-OTP path.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | code.gitea.io/gitea | 1.26.3 | GHSA-gx3v-q759-g323 |
| Go | code.gitea.io/gitea | 1.26.3 | GO-2026-6057 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Gitea | Gitea Open Source Git Server | 1.5.0 – before 1.26.3 |
Weakness: CWE-294 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
References
- GitHub Security Advisory vendor-advisory
- GitHub Pull Request #38151 patch
- Gitea v1.26.3 Release release-notes
- Gitea v1.26.4 Release Blog Post release-notes