CVE-2021-21684
JSON

6.1medium

Stored XSS vulnerability in Jenkins Git Plugin

Severity
6.1medium CVSS:3.1 by NVD
Exploit likelihood
1.24% (higher than 70% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
jenkins
Also known as
GHSA-gghc-g8cj-4vfv

Description

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, resulting in a stored cross-site scripting (XSS) vulnerability.

Affected

Product or packageVersionsReported by
Jenkins project Jenkins Git Pluginfrom unspecified up to 4.8.2
Not affected: 4.7.1.1, 4.3.1
CVE List
org.jenkins-ci.plugins:git (Maven)before 4.8.3GitHub Advisory Database
jenkins gitup to 4.8.2NVD

All scores

GitHub6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD6.1medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
NVD4.3medium CVSS:2.0AV:N/AC:M/Au:N/C:N/I:P/A:N

Classification

What each source says

CVE List

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, resulting in a stored cross-site scripting (XSS) vulnerability.

GitHub Advisory Database

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.

NVD (es)

El plugin Git de Jenkins versiones 4.8.2 y anteriores, no escapa a los parámetros de suma de comprobación Git SHA-1 proporcionados a las notificaciones de commit cuando se muestran en una causa de construcción, resultando en una vulnerabilidad de tipo cross-site scripting (XSS) almacenado

References

Sources

SourceRecordLicence
CVE ListCVE-2021-21684 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-gghc-g8cj-4vfv changed 2024-02-16CC-BY-4.0
NVDCVE-2021-21684 changed 2026-06-17Public domain