CVE-2026-52802
Received Received - Intake
Open Redirect Vulnerability in Gogs Prior to 0.14.3

Publication date: 2026-06-24

Last updated on: 2026-06-24

Assigner: GitHub, Inc.

Description
Gogs is an open source self-hosted Git service. Prior to 0.14.3, an open redirect vulnerability exists in Gogs where attacker-controlled redirect_to parameters can bypass validation, allowing redirection to arbitrary external sites. All redirects in Gogs that are validated via the IsSameSite function are vulnerable. The function only inspects the first two characters of the URL string. This check fails to account for directory traversal sequences followed by backslashes. This vulnerability is fixed in 0.14.3.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-24
Last Modified
2026-06-24
Generated
2026-06-25
AI Q&A
2026-06-25
EPSS Evaluated
N/A
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
gogs gogs to 0.14.3 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-601 The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability exists in Gogs, an open source self-hosted Git service, prior to version 0.14.3. It is an open redirect vulnerability where attacker-controlled redirect_to parameters can bypass validation checks. The validation function, IsSameSite, only inspects the first two characters of the URL string and fails to properly handle directory traversal sequences followed by backslashes. This allows attackers to redirect users to arbitrary external sites.

Impact Analysis

This vulnerability can impact users by allowing attackers to redirect them to malicious external websites through manipulated redirect parameters. Such redirections can be used for phishing attacks, malware distribution, or other malicious activities that exploit user trust in the original site.

Mitigation Strategies

To mitigate this vulnerability, you should upgrade Gogs to version 0.14.3 or later, where the open redirect issue has been fixed.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-52802. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart