Cross-site scripting in gogs - CVE-2022-1464

 

Cross-site scripting in gogs - CVE-2022-1464

Published: May 5, 2022 / Updated: April 27, 2026


Vulnerability identifier: #VU128089
CSH Severity: Low
CVSSv4.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-2022-1464
CWE-ID: CWE-79
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vulnerable software:
gogs
Software vendor:
gogs.io

Description

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

The vulnerability exists due to cross-site scripting in issue attachments when serving a crafted SVG file uploaded as an issue attachment. A remote user can upload a specially crafted SVG file to execute arbitrary script in a victim's browser.

Only installations that allow uploading SVG files as issue attachments are vulnerable.


Remediation

Install security update from vendor's website.

External links