CVE-2026-145259: RayLabsHQ gitea-mirror before 3.57.0 Missing Authorization in SSO Provider Registration
RayLabsHQ gitea-mirror before 3.57.0 contains a missing authorization vulnerability in /api/auth/sso/register that allows any authenticated user to register a domain-verified OIDC provider for another user's email domain. Attackers operating that OIDC provider can assert a victim's email to take over their account, read stored GitHub and Gitea tokens via /api/config, and modify mirror settings.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 3.57.0
Event History
Frequently Asked Questions
Who can exploit this issue, and what access do they need?
Any authenticated user can exploit the affected SSO provider registration endpoint. The attacker must operate an OIDC provider and be able to register it as domain-verified for another user's email domain.
What can an attacker do after successful exploitation?
An attacker can assert the victim's email through their OIDC provider to take over the victim's account. They can then read stored GitHub and Gitea tokens through /api/config and modify mirror settings.
Which versions should be remediated?
RayLabsHQ gitea-mirror versions before 3.57.0 are affected. Version 3.57.0 is the referenced fixed release.