GHSA-gghc-g8cj-4vfv

    Dashboard / Vulnerabilities / GHSA-gghc-g8cj-4vfv

    GHSA-gghc-g8cj-4vfv

    Published: 24 May 2022Last Modified: 16 Feb 2024

    Summary: Stored XSS vulnerability in Jenkins Git Plugin

    Details: Jenkins Git Plugin 4.8.2 and earlier does not escape the Git SHA-1 checksum parameters provided to commit notifications when displaying them in a build cause. This results in a stored cross-site scripting (XSS) vulnerability exploitable by attackers able to submit crafted commit notifications to the `/git/notifyCommit` endpoint. Jenkins Git Plugin 4.8.3 rejects Git SHA-1 checksum parameters that do not match the expected format. Existing values are sanitized when displayed on the UI. This vulnerability is only exploitable in Jenkins 2.314 and earlier, LTS 2.303.1 and earlier. See the [LTS upgrade guide](https://www.jenkins.io/doc/upgrade-guide/2.303/#SECURITY-2452).

    Affected packages

    Package

    Name: org.jenkins-ci.plugins:git

    Purl: pkg:maven/org.jenkins-ci.plugins/git

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -4.8.3

    Affected versions

    1.2.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