All vulnerabilities

Servers and applications

CVE-2022-31038

XSS vulnerability in repository issue list

Severity
Medium 5.4
Published
8 Jun 2022
Last changed
17 Jun 2026
Added to UpHeron
1 Nov 2026
Fixed in
0.12.9
Also known as
GHSA-xq4v-vrp9-vcf2
Sources
NVD, Project advisories (GitHub)

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…

Affected software

SoftwareAffected versions
GogsServers and applications · cpe:a:gogs:gogs
  • Every version before 0.12.9
GogsServers and applications · github:gogs/gogs
  • Every version before 0.12.9

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2022-31038
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2022-31038
  • GitHub Advisory Database https://github.com/advisories/GHSA-xq4v-vrp9-vcf2
  • github.com https://github.com/gogs/gogs/security/advisories/GHSA-xq4v-vrp9-vcf2