{"id":"CVE-2026-52802","published":"2026-06-24T20:17:19Z","modified":"2026-06-25T15:52:07Z","title":"Gogs: Open Redirect via redirect_to in Gogs","vendor":"gogs","product":"gogs","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00554,"percentile":0.47178,"provenance":"source"},"cwes":[{"id":"CWE-601","name":"URL Redirection to Untrusted Site"}],"references":[{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-xxhq-69mf-w8cr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gogs/gogs/pull/8322","tags":["x_refsource_MISC"]},{"url":"https://github.com/gogs/gogs/commit/c5da9631dc75f692f313373ae229c4d47ba6517f","tags":["x_refsource_MISC"]},{"url":"https://github.com/gogs/gogs/releases/tag/v0.14.3","tags":["x_refsource_MISC"]}],"priority":{"score":13.2,"factors":[{"name":"EPSS percentile","points":9.44},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"gogs","affectedVersions":[{"vendor":"gogs","product":"gogs","versions":["< 0.14.3"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-25T15:51:51.294655Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"gogs.io/gogs","vulnerableRanges":["<0.14.3","all versions"],"patched":["0.14.3"],"from":["GHSA-xxhq-69mf-w8cr","GO-2026-5773"],"provenance":"source"}],"summary":{"text":"The Gogs self-hosted Git service contains an open redirect flaw in its redirect_to handling, where the IsSameSite validation function inspects only the first two characters of the URL and so fails to block directory traversal sequences followed by backslashes. An attacker who can get a user to follow a crafted link (user interaction is required, and no authentication or network position beyond reaching the service is stated) can redirect that user to an arbitrary external site.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:47:09Z"},"euvd":{"id":"EUVD-2026-39068","exploited":false,"provenance":"source"}}