# CVE-2021-21684: Stored XSS vulnerability in Jenkins Git Plugin

- Severity: Medium 6.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.24%, higher than 70% of CVEs (2026-12-01)
- Published: 2021-10-06T22:10:14.000Z
- Modified: 2026-06-17T03:35:59.590Z
- Also known as: GHSA-gghc-g8cj-4vfv
- Weaknesses: CWE-79, CWE-116
- Assigned by: jenkins

## 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.

(As written by CVE List.)

## Affected

- Jenkins project Jenkins Git Plugin: from unspecified up to 4.8.2 (not affected: 4.7.1.1; 4.3.1)
- org.jenkins-ci.plugins:git (Maven): before 4.8.3
- jenkins git: up to 4.8.2

## Every score

- GitHub: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## 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

- CVE List: [CVE-2021-21684](https://www.cve.org/CVERecord?id=CVE-2021-21684), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-gghc-g8cj-4vfv](https://github.com/advisories/GHSA-gghc-g8cj-4vfv), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2021-21684](https://nvd.nist.gov/vuln/detail/CVE-2021-21684), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-21684 · Whole record: https://cve.day/CVE-2021-21684.json · Rebuilt by cve.day 2026-11-25T22:58:04.358Z
