Vulnerability · Published Jun 24, 2026 · Assigned by GitHub_M
CVE-2026-52802Gogs: Open Redirect via redirect_to in Gogs
Medium 5.4
In plain English
A medium-severity open redirect in gogs from gogs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 46% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | gogs.io/gogs | 0.14.3 | GHSA-xxhq-69mf-w8cr |
| Go | gogs.io/gogs | no fix listed | GO-2026-5773 |
Affected products (as reported)
Weakness: CWE-601 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
References
- https://github.com/gogs/gogs/security/advisories/GHSA-xxhq-69mf-w8cr x_refsource_CONFIRM
- https://github.com/gogs/gogs/pull/8322 x_refsource_MISC
- https://github.com/gogs/gogs/commit/c5da9631dc75f692f313373ae229c4d47ba6517f x_refsource_MISC
- https://github.com/gogs/gogs/releases/tag/v0.14.3 x_refsource_MISC