Loading HuntDB...

GHSA-gghc-g8cj-4vfv

GitHub Security Advisory

Stored XSS vulnerability in Jenkins Git Plugin

✓ GitHub Reviewed MODERATE Has CVE

Advisory 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

Maven org.jenkins-ci.plugins:git
Affected versions: 0 (fixed in 4.8.3)

Related CVEs

Key Information

GHSA ID
GHSA-gghc-g8cj-4vfv
Published
May 24, 2022 7:16 PM
Last Modified
October 27, 2023 4:02 PM
CVSS Score
5.0 /10
Primary Ecosystem
Maven
Primary Package
org.jenkins-ci.plugins:git
GitHub Reviewed
✓ Yes

Dataset

Last updated: July 5, 2025 6:26 AM

Data from GitHub Advisory Database. This information is provided for research and educational purposes.