CVE-2026-52802
Deferred Deferred - Pending Action

Open Redirect Vulnerability in Gogs Prior to 0.14.3

Vulnerability report for CVE-2026-52802, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-06-24

Last updated on: 2026-06-25

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-25
Generated
2026-07-15
AI Q&A
2026-06-25
EPSS Evaluated
2026-07-13
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
Compliance Impact

The vulnerability in Gogs allows attacker-controlled redirect_to parameters to bypass validation, enabling redirection to arbitrary external sites. This can be exploited to redirect users to phishing or malicious sites after login or other actions.

Such open redirect vulnerabilities can increase the risk of phishing attacks and unauthorized data exposure, which may impact compliance with standards like GDPR and HIPAA that require protection of user data and secure authentication flows.

However, the provided information does not explicitly discuss the direct impact of this vulnerability on compliance with specific regulations such as GDPR or HIPAA.

Detection Guidance

This vulnerability involves the `redirect_to` parameter in Gogs versions prior to 0.14.3, which can be exploited by crafting URLs that bypass the same-site validation and cause open redirects.

To detect potential exploitation attempts on your network or system, you can monitor HTTP requests to your Gogs instance for suspicious `redirect_to` parameter values that include directory traversal sequences combined with backslashes or unusual URL encodings.

  • Look for URLs containing patterns like `/a/../\example.com` or similar sequences in the `redirect_to` parameter.
  • Use web server logs or network traffic captures to search for such patterns.

Example commands to search logs for suspicious redirect_to parameters (assuming access logs are in common log format):

  • Using grep to find suspicious redirect_to parameters in access logs: ```bash grep -E 'redirect_to=.*(\\|%5C|\.\./)' /var/log/nginx/access.log ```
  • Using tcpdump to capture HTTP traffic and filter for suspicious redirect_to parameters: ```bash tcpdump -A -s 0 'tcp port 80 and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0)' | grep -i 'redirect_to=' ```

These commands help identify attempts to exploit the open redirect vulnerability by detecting unusual or malformed redirect URLs that bypass validation.

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