CVE-2022-31038

Medium

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 should check their users' display names for malicious characters.

SeverityMedium
CVSS5.4
Exploit probability—
ProductGogs
PublishedJun 9, 2022
First seenJun 9, 2022

How to fix

Update
  • gogs gogs0.12.9 or later
  • gogs.io/gogs0.12.9 or later

Affected products

ProductAffected versionsFixed in
gogs gogsv < 0.12.90.12.9
gogs.io/gogsGov < 0.12.90.12.9

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.