CVE-2026-52802
Gogs is an open source self-hosted Git service. Prior to 0.14.3, an …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/gogs/gogs/security/advisories/GHSA-xxhq-69mf-w8cr
- github.com/gogs/gogs/pull/8322
- github.com/gogs/gogs/commit/c5da9631dc75f692f313373ae229c4d47ba6517f
- github.com/gogs/gogs/releases/tag/v0.14.3
- github.com/advisories/GHSA-xxhq-69mf-w8cr
- nvd.nist.gov/vuln/detail/CVE-2026-52802
- nvd.nist.gov/vuln/detail/CVE-2026-52802
- cve.org/CVERecord?id=CVE-2026-52802
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.