Gitea: TOTP TOCTOU race on web 2FA paths + missing replay check on Basic-Auth `X-Gitea-OTP` surface

Date Jul 21, 2026
Type Vendor advisory
Signal High-risk advisory
Vendor / Product Go ยท code.gitea.io/gitea
CVE CVE-2026-20779
High-risk advisory CVE-2026-20779

Summary

Gitea: TOTP TOCTOU race on web 2FA paths + missing replay check on Basic-Auth `X-Gitea-OTP` surface

Why it matters

GitHub has published a reviewed security advisory for code.gitea.io/gitea. Prioritize it with other application dependency updates, especially because EPSS places it in the 38% percentile.

Operator check

Check whether code.gitea.io/gitea is present in application dependency manifests, lockfiles, or build images. Review the GitHub advisory and upgrade to a patched version where available. EPSS probability: 0.5%; percentile: 38%.

Sources

PatchBrief uses public sources. It does not scan environments, verify exposure, or replace vendor guidance.