Cross-site scripting in gogs - #VU170293

 

Cross-site scripting in gogs - #VU170293

Published: November 25, 2026


Vulnerability identifier: #VU170293
CSH Severity: Medium
CVSS v4: 5.1 [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]
CVE-ID: N/A
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to execute arbitrary JavaScript in another user's browser under the Gogs origin, potentially reading sensitive data and performing actions with the viewer's privileges.

The vulnerability exists due to improper neutralization of HTML in Gogs issue detail and dashboard issue list templates when they render stored LDAP bind-DN usernames as trusted HTML without sanitizing them. A remote user can supply a crafted LDAP username to execute script when another user views an affected page.


Affected software

gogs

Remediation

Install security update from vendor's website.

gogs - update to 0.14.4

External References

Related Security Bulletins