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 package | Versions | Reported by |
|---|---|---|
| Jenkins project Jenkins Git Plugin | from 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.3 | GitHub Advisory Database |
| jenkins git | up to 4.8.2 | NVD |
All scores
| GitHub | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 4.3medium CVSS:2.0 | AV: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
| https://www.jenkins.io/security/advisory/2021-10-06/#SECURITY-2499 | vendor-advisory, web | |
| http://www.openwall.com/lists/oss-security/2021/10/06/1 | mailing-list, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-21684 | advisory | |
| https://github.com/jenkinsci/git-plugin/commit/5474cc942bfba60927be629ff47fb41c38c66741 | web | |
| https://github.com/jenkinsci/git-plugin | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-21684 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-gghc-g8cj-4vfv changed 2024-02-16 | CC-BY-4.0 |
| NVD | CVE-2021-21684 changed 2026-06-17 | Public domain |