XSS in Gogs
CVE-2022-31038
Gogs is an open source self-hosted Git service. In versions of gogs prior to 0.12.9 `DisplayName` does not filter characters input from users, which leads to an XSS vulnerability when directly displayed in the issue list. This issue has been resolved in commit 155cae1d which sanitizes `DisplayName` prior to display to the user. All users of gogs are advised to upgrade. Users unable to upgrade should check their users' display names for malicious characters.
Vulnerability class: XSS (Cross-Site Scripting)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.4 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.007, 55.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Gogs — versions < 0.12.9
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (wuhan005/wuhan005). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/gogs/gogs/security/advisories/GHSA-xq4v-vrp9-vcf2 (Third Party Advisory, Issue Tracking)
- github.com/gogs/gogs/pull/7009 (Third Party Advisory, Issue Tracking)
- github.com/gogs/gogs/commit/155cae1de8916fc3fde78f350763034b7422caee (Patch, Third Party Advisory)