Cross-site scripting in gogs - CVE-2026-52798
Published: June 19, 2026
gogs
Detailed vulnerability description
The vulnerability allows a remote user to execute arbitrary JavaScript in the victim's browser within the Gogs origin.
The vulnerability exists due to cross-site scripting in the .ipynb preview markdown cell renderer when re-rendering sanitized notebook content on the client side. A remote user can commit a specially crafted .ipynb file containing a javascript: link and trick the victim into clicking the rendered link to execute arbitrary JavaScript in the victim's browser within the Gogs origin.
User interaction is required to click the rendered link in the notebook preview.