CVE-2026-104627

Gitea OpenID account linking without session binding

State
Published
Severity
5.4 Medium
Published
Oct 18, 2026
Updated
Oct 19, 2026
Reserved
Oct 14, 2026

Read the record on cve.org

Description

The Gitea OpenID association callback in the security settings accepted a positive OpenID 2.0 assertion without checking that the signed-in user had started the linking. Because OpenID 2.0 allows unsolicited assertions, an attacker-controlled OpenID provider could attach the attacker's identity to the account of a signed-in victim who opened a crafted link, and the attacker could then sign in as the victim through OpenID login, which does not apply the local TOTP or WebAuthn checks. The callback now requires a time-limited `state` value bound to the user.

Scores

CVSSScoreVectorSource
3.15.4 MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:NCISA-ADP

Weaknesses

  • CWE-287 Improper Authentication
  • CWE-352 Cross-Site Request Forgery (CSRF)

Affected Products

ProductVersions
GiteaGitea
  • 28.1.0 and earlierAffected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.