High
Gitea TOTP single-use enforcement defect allows OTP replay
Type: advisorySources: OSV
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-20779
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 10:21 UTC · Revision 1
Source evidence
Gitea TOTP single-use enforcement defect allows OTP replay
core-osv · Original sourcePublished 3 Jul 2026, 20:19 UTC
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.
osv:CVE-2026-20779
Complete source record
{
"id": "8150b17e46cab1900e5a83c1ebf6341f7c3e6af9ced5bef642b5ba24c1c526b1",
"url": "https://osv.dev/vulnerability/CVE-2026-20779",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Gitea TOTP single-use enforcement defect allows OTP replay",
"summary": "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.",
"evidence": "osv:CVE-2026-20779",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2026-20779",
"aliases": [
"CVE-2026-20779",
"GHSA-gx3v-q759-g323",
"GO-2026-6057"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/go-gitea/gitea",
"type": "GIT",
"events": [
{
"introduced": "280ebcbf7c761a212fb091634384847a38f25cb0"
},
{
"fixed": "4aa0d704f2c7d30351016b740bfc45247fd77efa"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "1.5.0"
},
{
"fixed": "1.26.3"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "4aa0d704f2c7d30351016b740bfc45247fd77efa"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v1.26.3"
},
{
"range": [
{
"introduced": "1.5.0"
},
{
"fixed": "1.26.3"
}
],
"source": "DESCRIPTION"
}
]
}
}
],
"versions": [
"v1.26.2",
"v1.26.1",
"v1.26.0",
"v1.26.0-rc0",
"v1.27.0-dev",
"v1.26.0-dev",
"v1.25.0-dev",
"v1.24.0-dev",
"v1.22.0-rc1",
"v1.23.0-dev",
"v1.22.0-rc0",
"v1.21.0-rc0",
"v1.22.0-dev",
"v1.20.0-rc0",
"v1.21.0-dev",
"v1.20.0-dev",
"v1.19.0-rc0",
"v1.18.0-rc0",
"v1.19.0-dev",
"v1.18.0-dev",
"v1.17.0-dev",
"v1.16.0-rc1",
"v1.15.0-rc1",
"v1.16.0-dev",
"v1.15.0-dev",
"v1.14.0-dev",
"v1.13.0-dev",
"v1.12.0-dev",
"v1.10.5",
"v1.11.0-rc1",
"v1.10.0-rc1",
"v1.11.0-dev",
"v1.9.0-rc1",
"v1.10.0-dev",
"v1.9.0-dev",
"v1.7.0-dev",
"v1.6.0-rc1",
"v1.6.0-dev",
"v1.5.0-rc1",
"v1.5.0-dev"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-20779.json"
}
}
],
"modified": "2026-10-28T02:30:43.772101347Z",
"provider": "osv",
"references": [
"https://blog.gitea.com/release-of-1.26.3-and-1.26.4/",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/20xxx/CVE-2026-20779.json",
"https://github.com/go-gitea/gitea/releases/tag/v1.26.3",
"https://github.com/go-gitea/gitea/security/advisories/GHSA-gx3v-q759-g323",
"https://nvd.nist.gov/vuln/detail/CVE-2026-20779",
"https://github.com/go-gitea/gitea/pull/38151"
],
"provider_metadata": {
"cwe_ids": [
"CWE-294"
],
"cna_assigner": "Gitea",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/20xxx/CVE-2026-20779.json"
}
},
"related_cves": [
{
"value": "CVE-2026-20779",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 511613,
"published_at": "2026-07-03T20:19:29.239+00:00"
}