CVE-2020-2162 json
Improper Neutralization of Input During Web Page Generation in Jenkins
published 6y ago modified 2mo ago also BIT-jenkins-2020-2162 , EUVD-2022-3626 , GHSA-crg2-6xv3-qg5f
- cvss
- 5.4
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.2%
- EPSS 1.2% chance of exploitation in 30 days, percentile 67%
- public exploits
- 0
- none known
Summary
Jenkins 2.227 and earlier, LTS 2.204.5 and earlier does not set Content-Security-Policy headers for files uploaded as file parameters to a build, resulting in a stored XSS vulnerability.
Patch / fix
- maven org.jenkins-ci.main:jenkins-core 2.228
- bitnami jenkins 2.227.1
- cri-o openshift 4.3 1.16.6-15.dev.rhaos4.3.gitebc053b.el7
- cri-o openshift 4.3 1.16.6-15.dev.rhaos4.3.gitebc053b.el8
- conmon openshift 4.3 2:2.0.17-1.rhaos4.3.el7
- conmon openshift 4.3 2:2.0.17-1.rhaos4.3.el8
- jenkins openshift 4.3 2.222.1.1591349991-1.el7
- openshift openshift 4.3 4.3.25-202006060952.git.1.96c30f6.el7
- openshift openshift 4.3 4.3.25-202006060952.git.1.96c30f6.el8
- s390utils openshift 4.3 2:2.6.0-23.el8
red hat advisories RHBA-2020:2435RHBA-2020:2477RHBA-2020:2444
- jenkins Alpine 3.24, Alpine 3.23, Alpine 3.22 +11 more 2.228-r0
alpine advisories ALPINE-CVE-2020-2162
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Is CVE-2020-2162 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2020-2162 updated cvss 5.4
jenkins: Content-Security-Policy headers for files uploaded leads to XSS
-
Red Hat OpenShift Container Platform 3.11 jenkins 2.222.1.1591351669-1.el7fixed: vendor fix RHBA-2020:2477
-
Red Hat OpenShift Container Platform 4.3 s390utils 2.6.0-23.el8, s390utils-base 2.6.0-23.el8, conmon 2.0.17-1.rhaos4.3.el7, conmon 2.0.17-1.rhaos4.3.el8, s390utils-cmsfs 2.6.0-23.el8, s390utils-zdsfs 2.6.0-23.el8, +30 morefixed: vendor fix RHBA-2020:2435
-
Red Hat OpenShift Container Platform 4.4 conmon 2.0.17-1.rhaos4.4.el7, conmon 2.0.17-1.rhaos4.4.el8, jenkins 2.222.1.1591351066-1.el7, cri-o 1.17.4-14.dev.rhaos4.4.gitb93af5d.el7, cri-o 1.17.4-14.dev.rhaos4.4.gitb93af5d.el8, openshift 4.4.0-202006061254.git.1.dc84fb4.el7, +18 morefixed: vendor fix RHBA-2020:2444
-
Red Hat OpenShift Container Platform 3.11 python-openshift 0.6.4-2.el7, python2-openshift 0.6.4-2.el7, jenkins-2-plugins 3.11.1591354111-1.el7, prometheus 3.11.232-1.git.1.3c936ee.el7, cri-tools 1.11.1-3.rhaos3.11.gitedabfb5.el7, golang-github-cpuguy83-go-md2man 1.0.7-1.el7, +39 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
1.16% chance of exploitation in the next 30 days, higher than 67% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 3.5 | AV:N/AC:M/Au:S/C:N/I:P/A:N |
| OSV | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.jenkins-ci.main:jenkins-core | <2.228 >=2.204.6, <2.228 |
2.228 |
| bitnami | jenkins | <2.227.1 |
2.227.1 |
Affected products
- Jenkins project Jenkins
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
- Technology feeds
References
-
github.com
/jenkinsci/jenkins/commit/c2d22b241eba718c62996e2ceeb5f2e0e9787f81
web
-
jenkins.io
/security/advisory/2020-03-25/#SECURITY-1793
web, vendor-advisory, advisory
-
openwall.com
/lists/oss-security/2020/03/25/2
mailing-list, web, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-2162
advisory, web
-
github.com
/jenkinsci/jenkins
package
Sources
- CVE List CVE-2020-2162
- GitHub Advisory GHSA-crg2-6xv3-qg5f
- NVD CVE-2020-2162
- OSV BIT-jenkins-2020-2162
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.