Skip to main content

URL Redirection to Untrusted Site ('Open Redirect')

CVE-2026-52802

Severity Medium
Score 5.4/10

Summary

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.

  • LOW
  • NETWORK
  • LOW
  • UNCHANGED
  • REQUIRED
  • NONE
  • LOW
  • NONE

CWE-601 - Open Redirect

An open redirect attack employs a URL parameter, HTML refresh tags, or a DOM based location change to exploit the trust of a vulnerable domain to direct the users to a malicious website. The attack could lead to higher severity vulnerabilities such as unauthorized access control, account takeover, XSS, and more.

Advisory Timeline

  • Published