CVE-2026-58422: Gitea: Improper authorization on OAuth sign-in callback silently re-enables administrator-disabled accounts
The OAuth2 sign-in callback in Gitea 1.26.1 unconditionally re-enables a locally-disabled account whenever the user authenticates through a linked external identity provider, silently undoing any administrator-initiated Disable Account action and issuing a fresh authenticated session in the same response. Once a user has linked any external IdP, the administrator’s disable toggle becomes non-binding — the user can re-enable themselves on demand by completing one OAuth callback, regaining full read and write access to their repositories, organizations, and access tokens.
References
- blog.gitea.com/release-of-1.26.3-and-1.26.4
- github.com/advisories/GHSA-g9g6-qhrc-p3qc
- github.com/go-gitea/gitea/commit/c43eb7c33a100ffc7b2367adf165f7085e0ccdc5
- github.com/go-gitea/gitea/pull/38009
- github.com/go-gitea/gitea/releases/tag/v1.26.4
- github.com/go-gitea/gitea/security/advisories/GHSA-g9g6-qhrc-p3qc
- nvd.nist.gov/vuln/detail/CVE-2026-58422
Code Behaviors & Features
Detect and mitigate CVE-2026-58422 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →