Open redirect in gogs - CVE-2026-52802

 

Open redirect in gogs - CVE-2026-52802

Published: June 19, 2026


Vulnerability identifier: #VU134907
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-52802
CWE-ID: CWE-601
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: gogs.io
Affected software:
gogs

Detailed vulnerability description

The vulnerability allows a remote attacker to redirect users to arbitrary external sites.

The vulnerability exists due to improper url validation in the redirect_to parameter handling when processing redirect requests. A remote attacker can supply a crafted redirect_to parameter to redirect users to arbitrary external sites.

User interaction is required because the victim must follow a crafted link and complete the affected flow.


How to mitigate CVE-2026-52802

Install security update from vendor's website.

Sources