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)
EPSS: 0.007 (48.4th percentile) — read the EPSS interpretation.
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.
Affected products
- Gogs — versions < 0.12.9
Weakness classification (CWE)
Public proof-of-concept exploits
References
- security-advisories@github.com (x_refsource_CONFIRM, Third Party Advisory, Issue Tracking)
- security-advisories@github.com (Third Party Advisory, x_refsource_MISC, Issue Tracking)
- security-advisories@github.com (Patch, Third Party Advisory, x_refsource_MISC)
Frequently asked questions
- What is CVE-2022-31038?
- CVE-2022-31038 is a medium-severity vulnerability in Gogs, classified under Cross-site Scripting. CVSS score: 5.4/10. Published 2022-06-09.
- How severe is CVE-2022-31038?
- Medium severity. CVSS v3 base score is 5.4 out of 10.
- Is CVE-2022-31038 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.