CVE-2022-31038
published 2022-06-09CVE-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…
PriorityP425medium5.4CVSS 3.1
AVNACLPRLUIRSCCLILAN
EPSS
0.67%
47.5th percentile
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.
Affected
2 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| gogs.io | gogs | >= 0 < 0.12.9 | 0.12.9 |
| gogs | gogs | < 0.12.9 | 0.12.9 |
CVSS provenance
nvdv3.15.4MEDIUMCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
nvdv2.03.5LOWAV:N/AC:M/Au:S/C:N/I:P/A:N
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
Cross-site Scripting vulnerability in repository issue list in Gogs in gogs.io/gogs
osv·2024-08-21
CVE-2022-31038 Cross-site Scripting vulnerability in repository issue list in Gogs in gogs.io/gogs
Cross-site Scripting vulnerability in repository issue list in Gogs in gogs.io/gogs
Cross-site Scripting vulnerability in repository issue list in Gogs in gogs.io/gogs
GHSA
Cross-site Scripting vulnerability in repository issue list in Gogs
ghsa·2022-06-08
CVE-2022-31038 [MEDIUM] CWE-79 Cross-site Scripting vulnerability in repository issue list in Gogs
Cross-site Scripting vulnerability in repository issue list in Gogs
### Impact
`DisplayName` allows all the characters from users, which leads to an XSS vulnerability when directly displayed in the issue list.
### Patches
`DisplayName` is sanitized before being displayed. Users should upgrade to 0.12.9 or the latest 0.13.0+dev.
### Workarounds
Check and update the existing users' display names that contain malicious characters.
### References
N/A
### For more information
If you have any questions or comments about this advisory, please post on https://github.com/gogs/gogs/pull/7009.
OSV
Cross-site Scripting vulnerability in repository issue list in Gogs
osv·2022-06-08
CVE-2022-31038 [MEDIUM] Cross-site Scripting vulnerability in repository issue list in Gogs
Cross-site Scripting vulnerability in repository issue list in Gogs
### Impact
`DisplayName` allows all the characters from users, which leads to an XSS vulnerability when directly displayed in the issue list.
### Patches
`DisplayName` is sanitized before being displayed. Users should upgrade to 0.12.9 or the latest 0.13.0+dev.
### Workarounds
Check and update the existing users' display names that contain malicious characters.
### References
N/A
### For more information
If you have any questions or comments about this advisory, please post on https://github.com/gogs/gogs/pull/7009.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://github.com/gogs/gogs/commit/155cae1de8916fc3fde78f350763034b7422caeehttps://github.com/gogs/gogs/pull/7009https://github.com/gogs/gogs/security/advisories/GHSA-xq4v-vrp9-vcf2https://github.com/gogs/gogs/commit/155cae1de8916fc3fde78f350763034b7422caeehttps://github.com/gogs/gogs/pull/7009https://github.com/gogs/gogs/security/advisories/GHSA-xq4v-vrp9-vcf2
2022-06-09
Published