MEDIUM
Gogs: Open Redirect via redirect_to in Gogs
Published Jun 24, 2026
5.4
MEDIUMCVSS 3.1
EPSS 0.55%
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 products
-
- Version < 0.14.3StatusaffectedConstraints-
- Version
No data.
No data.
No Red Hat product state for this CVE.
gogs.io/gogs
Go
Introduced 0 Fixed not fixed
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Go | gogs.io/gogs | 0 | not fixed |
Remediation
No remediation recorded yet.
Weaknesses (1)
References (7)
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-39068 Advisory
- https://github.com/advisories/GHSA-xxhq-69mf-w8cr Advisory
- https://github.com/gogs/gogs/commit/c5da9631dc75f692f313373ae229c4d47ba6517f x_refsource_MISC
- https://github.com/gogs/gogs/pull/8322 x_refsource_MISC
- https://github.com/gogs/gogs/releases/tag/v0.14.3 x_refsource_MISC
- https://github.com/gogs/gogs/security/advisories/GHSA-xxhq-69mf-w8cr exploitx_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2026-52802
| Link | Providers | Tags |
|---|---|---|
| https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-39068 | Advisory | |
| https://github.com/advisories/GHSA-xxhq-69mf-w8cr | Advisory | |
| https://github.com/gogs/gogs/commit/c5da9631dc75f692f313373ae229c4d47ba6517f | x_refsource_MISC | |
| https://github.com/gogs/gogs/pull/8322 | x_refsource_MISC | |
| https://github.com/gogs/gogs/releases/tag/v0.14.3 | x_refsource_MISC | |
| https://github.com/gogs/gogs/security/advisories/GHSA-xxhq-69mf-w8cr | exploitx_refsource_CONFIRM | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-52802 |
Change history (0)
No recorded changes yet.
Sources
CVE.org / MITRE
Status PUBLISHED
Assigner GitHub_M
Published Jun 24, 2026
Updated Jun 25, 2026
Reserved Jun 8, 2026
Link CVE-2026-52802
CISA Vulnrichment
Updated Jun 25, 2026
ENISA EUVD
EUVD-2026-39068 GHSA-XXHQ-69MF-W8CR Assigner GitHub_M
Published Jun 24, 2026
Updated Jun 25, 2026
Exploited since n/a
Link EUVD-2026-39068