{"id":"CVE-2022-31038","aliases":["GHSA-xq4v-vrp9-vcf2","GO-2022-0483"],"url":"https://o3.security/vulnerability/CVE-2022-31038","summary":"XSS vulnerability in repository issue list in Gogs","details":"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.","published":"2022-06-08T17:40:11Z","modified":"2026-08-12T03:51:26.171047217Z","cvss":{"score":5.4,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"gogs.io/gogs","fixedVersion":"0.12.9"}],"fix":{"url":"https://github.com/gogs/gogs/commit/155cae1de8916fc3fde78f350763034b7422caee","label":"gogs/gogs@155cae1"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31038.json"},{"type":"ADVISORY","url":"https://github.com/gogs/gogs/security/advisories/GHSA-xq4v-vrp9-vcf2"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31038"},{"type":"FIX","url":"https://github.com/gogs/gogs/commit/155cae1de8916fc3fde78f350763034b7422caee"},{"type":"FIX","url":"https://github.com/gogs/gogs/pull/7009"},{"type":"PACKAGE","url":"https://github.com/gogs/gogs"},{"type":"WEB","url":"https://github.com/gogs/gogs/releases/tag/v0.12.9"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:26.171047217Z"}}