CVE-2022-31038

    Dashboard / Vulnerabilities / CVE-2022-31038

    CVE-2022-31038

    Published: 8 Jun 2022Last Modified: 12 Aug 2026

    Summary: XSS vulnerability in repository issue list in Gogs

    Details: 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.

    Affected packages

    Package

    Name:

    Purl:

    Affected ranges

    Type: GIT

    Events:

    Affected versions

    v0.12.8-rc.1
    v0.12.8
    v0.12.7-rc.1
    v0.12.7
    v0.12.6-rc.1
    v0.12.6
    v0.12.5-rc.1
    v0.12.5
    v0.12.4-rc.1
    v0.12.4
    v0.12.3
    v0.12.2
    v0.12.1
    v0.12.0

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    CVE-2022-31038 | CVE-DB