Vulnerability advisory
CVE-2026-20779
Gitea TOTP single-use enforcement defect allows OTP replay
Also known as GHSA-gx3v-q759-g323GO-2026-6057
Severity
- CVSS 3.x
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
Affected versions
Repository
| Affected commits | Fixed by commit |
|---|---|
| GIT github.com/go-gitea/gitea ↗ | |
| 280ebcbf7c761a212fb091634384847a38f25cb0 to before 4aa0d704f2c7d30351016b740bfc45247fd77efa | 4aa0d704f2c7d30351016b740bfc45247fd77efa |
Also listed as affected (40)
| |
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.
References
- Advisoryblog.gitea.com/release-of-1.26.3-and-1.26.4/ ↗
- Advisorygithub.com/CVEProject/cvelistV5/tree/main/cves/2026/20xxx/CVE-2026-20779.json ↗
- Advisorygithub.com/go-gitea/gitea/releases/tag/v1.26.3 ↗
- Advisorygithub.com/go-gitea/gitea/security/advisories/GHSA-gx3v-q759-g323 ↗
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-20779 ↗
- Fixgithub.com/go-gitea/gitea/pull/38151 ↗