Cross-site scripting in gogs - CVE-2026-52807

 

Cross-site scripting in gogs - CVE-2026-52807

Published: June 19, 2026


Vulnerability identifier: #VU134903
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-52807
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: gogs.io
Affected software:
gogs

Detailed vulnerability description

The vulnerability allows a remote user to execute arbitrary JavaScript in a victim's browser session.

The vulnerability exists due to cross-site scripting in the milestone dropdown on the new issue page when rendering a stored milestone name and processing dropdown interaction. A remote user can create a milestone with a crafted HTML/JavaScript payload to execute arbitrary JavaScript in a victim's browser session.

User interaction is required with the milestone dropdown on the new issue page.


How to mitigate CVE-2026-52807

Install security update from vendor's website.

Sources