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.
References (4)
Core 4
Core References
X_Refsource_Confirm x_refsource_confirm
https://github.com/gogs/gogs/security/advisories/GHSA-xxhq-69mf-w8cr
X_Refsource_Misc x_refsource_misc
https://github.com/gogs/gogs/pull/8322
X_Refsource_Misc x_refsource_misc
https://github.com/gogs/gogs/commit/c5da9631dc75f692f313373ae229c4d47ba6517f
X_Refsource_Misc x_refsource_misc
https://github.com/gogs/gogs/releases/tag/v0.14.3
Scores
CVSS v3
5.4
EPSS
0.0055
EPSS Percentile
42.0%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
CISA SSVC
Vulnrichment
Exploitation
poc
Automatable
no
Technical Impact
partial
Details
CWE
CWE-601
Status
published
Products (1)
gogs/gogs
< 0.14.3
Published
Jun 24, 2026
Tracked Since
Jun 25, 2026