All reports
Medium

Stored XSS vulnerability in Jenkins Git Plugin

Affected versions

Affected versions
<= 4.8.2
Fixed version
4.8.3
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2021-21684

Probability of exploitation in the next 30 days: 1.24%

FIRST EPSS · 2026-11-23

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.

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.

Links

Credits

  • NotMyFault