Back to overview

CVE-2026-52802

MEDIUM
5.4
CVSS 3.1
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.

Metadata

CVE ID
CVE-2026-52802
State
PUBLISHED
Assigner
GitHub_M
Reserved
2026-06-08 18:02 UTC
Published
2026-06-24 20:17 UTC
Last updated
2026-06-24 20:17 UTC
Primary CWE
CWE-601
CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Vendor / Product
gogs / gogs
Sources
cve.org  ·  NVD

Severity & Metrics

5.4 MEDIUM CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
Affected products (1)
VendorProductPlatformVersions
gogs gogs < 0.14.3
Weakness (CWE)
CWESourceDescription
CWE-601 cna CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
CVSS scores (1)
ScoreSeverityVersionSourceVector
5.4 MEDIUM 3.1 cna CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
References (4)
Back to overview