{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-31038","published":"2022-06-09T17:15:09.917000Z","last_modified":"2026-06-17T04:44:39.773000Z","status":"Modified","cvss":{"version":"3.1","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","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-79"],"cpes":[{"criteria":"cpe:2.3:a:gogs:gogs:*:*:*:*:*:*:*:*","part":"a","vendor":"gogs","product":"gogs","version_end_excluding":"0.12.9"}],"cpes_truncated":false,"vendors":["gogs"],"products":["gogs/gogs"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"epss":{"score":0.00729,"percentile":0.5017,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-xq4v-vrp9-vcf2","ecosystem":"Go","name":"gogs.io/gogs","purl":"pkg:golang/gogs.io/gogs","ranges":[{"introduced":"0","fixed":"0.12.9"}],"versions":[],"versions_truncated":false},{"advisory":"GO-2022-0483","ecosystem":"Go","name":"gogs.io/gogs","purl":"pkg:golang/gogs.io/gogs","ranges":[{"introduced":"0","fixed":"0.12.9"}],"versions":[],"versions_truncated":false}],"severity":"medium","priority_score":32,"links":{"html_es":"/es/cve/CVE-2022-31038/","html_en":"/en/cve/CVE-2022-31038/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-31038","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-31038"},"untrusted":{"vendor_name":"Gogs","product_name":"Gogs","desc_en":"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":[{"untrusted_vendor":"gogs","untrusted_product":"gogs","versions":[]}],"references":[{"url":"https://github.com/gogs/gogs/commit/155cae1de8916fc3fde78f350763034b7422caee","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/gogs/gogs/pull/7009","tags":["Issue Tracking","Third Party Advisory"]},{"url":"https://github.com/gogs/gogs/security/advisories/GHSA-xq4v-vrp9-vcf2","tags":["Issue Tracking","Third Party Advisory"]}]}}