CVE-2026-52803: Gogs: Session Fixation via Missing Session ID Regeneration on Sign-In
Gogs is an open source self-hosted Git service. Prior to 0.15.0, Gogs does not regenerate the session ID after successful authentication. An attacker who forces a victim to use a known session ID can hijack the session after the victim logs in and take over the account. This issue is fixed in version 0.15.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Gogsto a version that resolves this vulnerability.Fixed in 0.15.0
Event History
Frequently Asked Questions
Which Gogs deployments are affected?
Gogs versions prior to 0.15.0 are affected. The issue applies to deployments where an attacker can cause a victim to use a session ID known to the attacker before the victim signs in.
What does an attacker need to do to exploit this issue?
The attacker must force the victim to use a known session ID and then wait for the victim to authenticate. Because the session ID is not regenerated after sign-in, the attacker can use that known ID to hijack the authenticated session and take over the account.
What is the remediation?
Upgrade Gogs to version 0.15.0, which fixes session ID regeneration after successful authentication.