Medium

Stored XSS vulnerability in Jenkins Git Plugin

  • Disclosed: 24.05.2022
  • Updated: 11.10.2026 11:22

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (Maven) org.jenkins-ci.plugins:git < 4.8.3 4.8.3

References

CVSS score 6.1/10
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Weakness (CWE)
CWE-116, CWE-79
Platform
Java / Kotlin (Maven)
Package
org.jenkins-ci.plugins:git
Disclosed
24.05.2022
Updated
11.10.2026 11:22

Sources and licenses

OSV / GitHub Advisory Database - GHSA-gghc-g8cj-4vfv - CC BY 4.0

Vulnerability history: org.jenkins-ci.plugins:git

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (12) in the archive
Total entries
12
First → latest
05.2022 08.2022
Without a fix
0
Exploited in attacks
0

Severity breakdown

  • High 2
  • Medium 9
  • Low 1

Disclosures per year

  1. 2022: 12
  2. 2023: 0
  3. 2024: 0
  4. 2025: 0
  5. 2026: 0
Severity:
  1. Stored XSS vulnerability in Jenkins Git Plugin this entry
    Medium · 6.1 CVE-2021-21684 < 4.8.3 4.8.3
  2. High · 7.5 CVE-2022-30947 < 4.11.2 4.11.2
  3. High · 7.5 CVE-2017-1000092 < 3.3.2 3.3.2

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.