CVE-2021-21684
MEDIUM 6.1CVSS 3.1Stored XSS vulnerability in Jenkins Git Plugin
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.
- Published
- 6 Oct 2021
- Last modified
- 17 Jun 2026
- Assigned by
- jenkinsci-cert@googlegroups.com
- NVD status
- Modified
- Weakness
- CWE-116CWE-79
- Also known as
- GHSA-gghc-g8cj-4vfv
- Sources
- NVDJSONOSV GHSA-gghc-g8cj-4vfvJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | jenkins | gitcpe:2.3:a:jenkins:git:*:*:*:*:*:jenkins:*:* |
<= 4.8.2 | |
| OSV | Maven | org.jenkins-ci.plugins:git | < 4.8.3 | 4.8.3 |
References
- http://www.openwall.com/lists/oss-security/2021/10/06/1 · Mailing List, Third Party Advisory, WEB
- https://www.jenkins.io/security/advisory/2021-10-06/#SECURITY-2499 · Vendor 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
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 6 Oct 2021)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 24 May 2022)