CVE-2020-2136 is a medium-severity (CVSS 5.4) Cross-site Scripting (XSS) vulnerability in org.jenkins-ci.plugins:git. A fix is available for org.jenkins-ci.plugins:git — see the affected versions and patch details below.
Improper Neutralization of Input During Web Page Generation in Jenkins Git Plugin
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
org.jenkins-ci.plugins:gitReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
Jenkins Git Plugin 4.2.0 and earlier does not escape the error message for the repository URL for Microsoft TFS field form validation, resulting in a stored cross-site scripting vulnerability.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.jenkins-ci.plugins:git | all versions | 4.2.1org.jenkins-ci.plugins:git:4.2.1 |
Affected Products
gitjenkinsDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.jenkins-ci.plugins:git, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.jenkins-ci.plugins:git to 4.2.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2020-2136 is resolved across your whole dependency graph.
Workarounds
Escape or sanitise the affected output on the server side rather than relying on client-side filtering, and add a Content-Security-Policy that blocks inline script execution so injected markup cannot run even if it reaches the page.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat OpenShift Container Platform 3.11 | jenkins-2-plugins-0:3.11.1591354111-1.el7 | RHSA-2020:2478 |
| Red Hat OpenShift Container Platform 4.3 | jenkins-2-plugins-0:4.3.1597915133-1.el7 | RHSA-2020:3616 |
| Red Hat OpenShift Container Platform 4.4 | jenkins-2-plugins-0:4.4.1592817009-1.el7 | RHSA-2020:2737 |
| Red Hat OpenShift Container Platform 4.5 | openshift4/ose-aws-machine-controllers:v4.5.0-202007012112.p0 | RHBA-2020:2409 |
Frequently Asked Questions
Is CVE-2020-2136 in your dependencies?
Find it across Maven, including transitive dependencies.