CVE-2022-31038

MEDIUM

Gogs < 0.12.9 - Stored Cross-Site Scripting via Unsanitized DisplayName

Title source: llm
STIX 2.1

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.

References (3)

Core 3
Core References
Issue Tracking, Third Party Advisory x_refsource_confirm
https://github.com/gogs/gogs/security/advisories/GHSA-xq4v-vrp9-vcf2
Issue Tracking, Third Party Advisory x_refsource_misc
https://github.com/gogs/gogs/pull/7009

Scores

CVSS v3 5.4
EPSS 0.0067
EPSS Percentile 47.5%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-79
Status published
Products (2)
gogs/gogs < 0.12.9
gogs.io/gogs 0 - 0.12.9Go
Published Jun 09, 2022
Tracked Since Feb 18, 2026