Open Redirect Vulnerability in Gogs Git Service
CVE-2026-52802

5.4MEDIUM

Key Information:

Vendor

Gogs

Status
Vendor
CVE Published:
24 June 2026

What is CVE-2026-52802?

Gogs, an open source self-hosted Git service, contains an open redirect vulnerability in versions prior to 0.14.3. This vulnerability occurs when the 'redirect_to' parameters provided by an attacker are not properly validated, allowing redirection to arbitrary external sites. The flawed validation checks within Gogs, specifically in the IsSameSite function, only consider the first two characters of the URL, which enables exploitation through directory traversal sequences followed by backslashes. Users are advised to update to version 0.14.3 or later to secure their installations against this vulnerability.

Affected Version(s)

gogs < 0.14.3

References

CVSS V3.1

Score:
5.4
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
Low
Availability:
Low
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
Required
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.