CVE-2022-31038 json
XSS vulnerability in repository issue list in Gogs
published 2022-06-08 4 y ago modified 2026-06-17 4 mo ago also GHSA-xq4v-vrp9-vcf2 , GO-2022-0483 , EUVD-2022-6192
- cvss
- 5.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 54%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go gogs.io/gogs 0.12.9
- gogs gogs 0.12.9
- github.com/gogs/gogs@155cae1 commit
- github.com/gogs/gogs#7009 pull request
- github.com/gogs/gogs/releases/tag/v0.12.9 release
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
0.74% chance of exploitation in the next 30 days, higher than 54% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 3.5 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
| GitHub | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | gogs.io/gogs | <0.12.9 |
0.12.9 |
Affected products
- gogs gogs
Classification
References
-
github.com
/gogs/gogs/pull/7009
web, issue-tracking, third-party-advisory
-
github.com
/gogs/gogs/commit/155cae1de8916fc3fde78f350763034b7422caee
web, patch, third-party-advisory
-
github.com
/gogs/gogs/security/advisories/GHSA-xq4v-vrp9-vcf2
web, issue-tracking, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-31038
advisory
-
github.com
/gogs/gogs
package
-
github.com
/gogs/gogs/releases/tag/v0.12.9
web
Sources
- CVE List CVE-2022-31038
- GitHub Advisory GHSA-xq4v-vrp9-vcf2
- NVD CVE-2022-31038
- OSV GO-2022-0483
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.