{"id":"CVE-2020-2162","published":"2020-03-25T16:05:35Z","modified":"2024-08-04T07:01:40Z","title":"Jenkins 2.227 and earlier, LTS 2.204.5 and earlier does not set Content-Security-Policy headers for files uploaded as…","vendor":"Jenkins","product":"Jenkins","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01159,"percentile":0.67898,"provenance":"source"},"cwes":[],"references":[{"url":"https://jenkins.io/security/advisory/2020-03-25/#SECURITY-1793","tags":["x_refsource_CONFIRM"]},{"url":"http://www.openwall.com/lists/oss-security/2020/03/25/2","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":13.6,"factors":[{"name":"EPSS percentile","points":13.58}]},"vendorSlug":"jenkins","affectedVersions":[{"vendor":"Jenkins project","product":"Jenkins","versions":[">= unspecified, <= 2.227",">= unspecified, <= LTS 2.204.5"]}],"affected":[{"ecosystem":"Maven","package":"org.jenkins-ci.main:jenkins-core","vulnerableRanges":["<2.228",">=2.204.6, <2.228"],"patched":["2.228"],"from":["GHSA-crg2-6xv3-qg5f"],"provenance":"source"}],"summary":{"text":"Jenkins has a flaw in its handling of files uploaded as file parameters to a build: it does not set Content-Security-Policy headers on those files, which leaves the component that serves them exposed to stored cross-site scripting. An attacker who can get a file uploaded as a build file parameter could have script run in the browser of a user who views that file.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:54:25Z"},"euvd":{"id":"EUVD-2022-3626","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-jenkins-cve-2018-1000406","parents":[{"from":"CVE-2018-1000406","to":"CVE-2020-2162","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["core/src/main/java/hudson/model/FileParameterValue.java"],"commits":["https://github.com/jenkinsci/jenkins/commit/c3351d2e7c3edfee82b9470e9aa1168982296072","https://github.com/jenkinsci/jenkins/commit/c2d22b241eba718c62996e2ceeb5f2e0e9787f81"],"basis":"shared function","functions":["doDynamic"]}]},{"from":"CVE-2019-10352","to":"CVE-2020-2162","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["core/src/main/java/hudson/model/FileParameterValue.java"],"commits":["https://github.com/jenkinsci/jenkins/commit/18fc7c0b466553cbd4f790db3270964305bee7f9","https://github.com/jenkinsci/jenkins/commit/c2d22b241eba718c62996e2ceeb5f2e0e9787f81"],"basis":"rarely changed file"}]}]}}