Vulnerability Details : 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 category: Cross site scripting (XSS)
Products affected by CVE-2022-31038
- cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-31038
0.06%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 25 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-31038
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
3.5
|
LOW | AV:N/AC:M/Au:S/C:N/I:P/A:N |
6.8
|
2.9
|
NIST | |
5.4
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
2.3
|
2.7
|
NIST | |
5.4
|
MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
2.3
|
2.7
|
GitHub, Inc. |
CWE ids for CVE-2022-31038
-
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.Assigned by: security-advisories@github.com (Primary)
References for CVE-2022-31038
-
https://github.com/gogs/gogs/security/advisories/GHSA-xq4v-vrp9-vcf2
XSS vulnerability in repository issue list · Advisory · gogs/gogs · GitHubIssue Tracking;Third Party Advisory
-
https://github.com/gogs/gogs/commit/155cae1de8916fc3fde78f350763034b7422caee
issues: sanitize `DisplayName` (#7009) · gogs/gogs@155cae1 · GitHubPatch;Third Party Advisory
-
https://github.com/gogs/gogs/pull/7009
issues: sanitize `DisplayName` by wuhan005 · Pull Request #7009 · gogs/gogs · GitHubIssue Tracking;Third Party Advisory
Jump to