Vulnerability · Published Jun 8, 2022 · Assigned by GitHub_M
CVE-2022-31038XSS vulnerability in repository issue list in Gogs
Medium 5.4
In plain English
A medium-severity cross-site scripting in gogs from gogs. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 55% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | gogs.io/gogs | 0.12.9 | GHSA-xq4v-vrp9-vcf2 |
| Go | gogs.io/gogs | 0.12.9 | GO-2022-0483 |
Affected products (as reported)
Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
References
- https://github.com/gogs/gogs/security/advisories/GHSA-xq4v-vrp9-vcf2 x_refsource_CONFIRM
- https://github.com/gogs/gogs/pull/7009 x_refsource_MISC
- https://github.com/gogs/gogs/commit/155cae1de8916fc3fde78f350763034b7422caee x_refsource_MISC