Live threats

All CVEs / Gogs

CVE-2022-31038Gogs

Medium 5.4

Priority
32
CVSS 3.1
5.4
EPSS
0.7%
probability of exploitation in 30 days · percentile 50
Auth required
Yes
Published
Jun 9, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-79
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Gogs.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go gogs.io/gogs < 0.12.9 0.12.9 go get gogs.io/gogs@v0.12.9
Go gogs.io/gogs < 0.12.9 0.12.9 go get gogs.io/gogs@v0.12.9

Per OSV / GitHub Advisories (GHSA-xq4v-vrp9-vcf2, GO-2022-0483). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
gogsgogs< 0.12.9

Official sources

References

Links published by the sources. Open them with care.