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 (51.6th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 52nd percentile — 51.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.007 · newest: 0.007 · change: 0.000
Affected products
- Gogs — versions < 0.12.9
Weakness classification (CWE)
Public proof-of-concept exploits
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)
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.