Cross-site scripting in gogs - #VU170293
Published: November 25, 2026
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.