Medium severity · published Jun 9, 2022
CVE-2022-31038
Gogs is an open source self-hosted Git service
5.4
CVSS
0.7%
EPSS
No
On KEV
Description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
Low
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.7% · higher than 54% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
GO
Gogs · Gogs
before 0.12.9 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-31038
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-31038
Patch
https://github.com/gogs/gogs/commit/155cae1de8916fc3fde78f350763034b7422caee
Issue Tracking
https://github.com/gogs/gogs/pull/7009
Issue Tracking
https://github.com/gogs/gogs/security/advisories/GHSA-xq4v-vrp9-vcf2
More from Gogs
8.8
CVE-2025-8110
File overwrite in file update API in Gogs
10.0
CVE-2026-52813
Gogs: Path Traversal in organization name results in RCE through Git hooks
9.9
CVE-2026-52806
Gogs: RCE via git rebase --exec argument injection in pull request merge
9.9
CVE-2024-39932
Gogs through 0.13.0 allows argument injection during the previewing of changes
9.9
CVE-2024-39931
Gogs through 0.13.0 allows deletion of internal files
