CVE-2022-31038
lowpriority · track · 22EPSS 0.007 · 54 %ileEUUSEPSS · scored 2026-10-22
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · low–medium · 3.5–5.4
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-xq4v-vrp9-vcf2Cross-site Scripting vulnerability in repository issue list in Gogs2022-06-08ghsa · osvUS
### Impact `DisplayName` allows all the characters from users, which leads to an XSS vulnerability when directly displayed in the issue list. ### Patches `DisplayName` is sanitized before being displayed. Users should upgrade to 0.12.9 or the latest 0.13.0+dev. ### Workarounds Check and update the existing users' display names that contain malicious characters. ### References N/A ### For more information If you have any questions or comments about this advisory, please post on https://github.com/gogs/gogs/pull/7009.
- GO-2022-0483Cross-site Scripting vulnerability in repository issue list in Gogs in gogs.io/gogs2024-08-21vendor · osvUS
Cross-site Scripting vulnerability in repository issue list in Gogs in gogs.io/gogs
also known as (5)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (11)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2022-31038/cnnvd
- https://github.com/gogs/gogs/commit/155cae1de8916fc3fde78f350763034b7422caeecnnvd
- https://github.com/gogs/gogs/pull/7009cnnvd
- https://github.com/gogs/gogs/security/advisories/GHSA-xq4v-vrp9-vcf2cnnvd
- https://www.cybersecurity-help.cz/vdb/SB2022060914cnnvd
- https://github.com/gogs/gogs/commit/155cae1de8916fc3fde78f350763034b7422caeeenisa_euvd
- https://github.com/gogs/gogs/pull/7009enisa_euvd
- https://github.com/gogs/gogs/security/advisories/GHSA-xq4v-vrp9-vcf2enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan