Back

MEDIUM

Gogs: Open Redirect via redirect_to in Gogs

Published Jun 24, 2026

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

Remediation

No remediation recorded yet.

Weaknesses (1)

References (7)

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
CISA Vulnrichment
Updated Jun 25, 2026
NVD
Status Deferred
Modified Jun 25, 2026
Red Hat
Severity n/a
Public date n/a
ENISA EUVD
Assigner GitHub_M
Published Jun 24, 2026
Updated Jun 25, 2026
Exploited since n/a
EUVD-2026-39068 GHSA-XXHQ-69MF-W8CR