{"id":"CVE-2021-21684","aliases":["CVE-2021-21684","GHSA-gghc-g8cj-4vfv"],"related":[],"kind":"vulnerability","state":"published","title":"Stored XSS vulnerability in Jenkins Git Plugin","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\nThis results in a stored cross-site scripting (XSS) vulnerability exploitable by attackers able to submit crafted commit notifications to the `/git/notifyCommit` endpoint.\n\nJenkins 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.\n\nThis vulnerability is only exploitable in Jenkins 2.314 and earlier, LTS 2.303.1 and earlier. See the [LTS upgrade guide](https://www.jenkins.io/doc/upgrade-guide/2.303/#SECURITY-2452).","format":"markdown","source":"ghsa"},{"lang":"es","text":"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","source":"nvd"}],"published":"2021-10-06T22:10:14.000Z","modified":"2026-06-17T03:35:59.590Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-79","CWE-116"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"4.8.2","status":"affected"},{"version":"4.7.1.1","status":"unaffected"},{"version":"4.3.1","status":"unaffected"}],"vendor":"Jenkins project","product":"Jenkins Git Plugin","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.8.3"}],"ecosystem":"Maven","package":"org.jenkins-ci.plugins:git","purl":"pkg:maven/org.jenkins-ci.plugins/git","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"4.8.2"}],"vendor":"jenkins","product":"git","cpe":"cpe:2.3:a:jenkins:git:*:*:*:*:*:jenkins:*:*","source":"nvd"}],"references":[{"url":"https://www.jenkins.io/security/advisory/2021-10-06/#SECURITY-2499","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2021/10/06/1","tags":["mailing-list","third-party-advisory","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21684","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/jenkinsci/git-plugin/commit/5474cc942bfba60927be629ff47fb41c38c66741","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/jenkinsci/git-plugin","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"jenkins","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-21684","url":"https://www.cve.org/CVERecord?id=CVE-2021-21684","licence":"CVE Terms of Use","modified":"2024-08-03T18:23:28.621Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gghc-g8cj-4vfv","url":"https://github.com/advisories/GHSA-gghc-g8cj-4vfv","licence":"CC-BY-4.0","modified":"2024-02-16T08:22:11.873Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-21684","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21684","licence":"Public domain","modified":"2026-06-17T03:35:59.590Z"}],"updatedAt":"2026-11-25T22:58:04.358Z","epss":{"score":0.01242,"percentile":0.70043,"date":"2026-12-01T12:00:22.000Z"}}