{"id":"CVE-2022-31038","published":"2022-06-08T17:40:11Z","modified":"2025-04-23T18:18:26Z","title":"XSS vulnerability in repository issue list in Gogs","vendor":"gogs","product":"gogs","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00737,"percentile":0.5543,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-xq4v-vrp9-vcf2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gogs/gogs/pull/7009","tags":["x_refsource_MISC"]},{"url":"https://github.com/gogs/gogs/commit/155cae1de8916fc3fde78f350763034b7422caee","tags":["x_refsource_MISC"]}],"priority":{"score":14.9,"factors":[{"name":"EPSS percentile","points":11.09},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"gogs","affectedVersions":[{"vendor":"gogs","product":"gogs","versions":["< 0.12.9"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-04-23T14:05:54.052360Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"gogs.io/gogs","vulnerableRanges":["<0.12.9"],"patched":["0.12.9"],"from":["GHSA-xq4v-vrp9-vcf2","GO-2022-0483"],"provenance":"source"}],"summary":{"text":"The flaw is a cross-site scripting (XSS) vulnerability in the repository issue list of Gogs, a self-hosted Git service, caused by unfiltered user display names (DisplayName) being rendered directly in that list. An attacker with low-privilege access who can get a user to interact with the issue list, such as by viewing the affected page, can inject script that runs in the victim's browser, with a low impact on confidentiality and integrity and no impact on availability.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:36:16Z"},"euvd":{"id":"EUVD-2022-6192","exploited":false,"provenance":"source"}}