{"id":"GHSA-4c87-9xq5-5c35","summary":"Content-Security-Policy protection for user content disabled by Jenkins ZAP Pipeline Plugin","details":"Jenkins sets the `Content-Security-Policy` header to static files served by Jenkins (specifically `DirectoryBrowserSupport`), such as workspaces, `/userContent`, or archived artifacts.\n\nZAP Pipeline Plugin prior to 1.10 globally disables the `Content-Security-Policy` header for static files served by Jenkins. This allows cross-site scripting (XSS) attacks by users with the ability to control files in workspaces, archived artifacts, etc.\n\nJenkins instances with [Resource Root URL](https://www.jenkins.io/doc/upgrade-guide/2.204/#resource-domain-support) configured are largely unaffected. A possible exception are file parameter downloads. The behavior of those depends on the specific version of Jenkins:\n- Jenkins 2.231 and newer, including 2.235.x LTS, is unaffected, as all resource files from user content are generally served safely from a different domain, without restrictions from `Content-Security-Policy` header.\n- Jenkins between 2.228 (inclusive) and 2.230 (inclusive), as well as all releases of Jenkins 2.222.x LTS and the 2.204.6 LTS release, are affected by this vulnerability, as file parameters are not served via the Resource Root URL.\n- Jenkins 2.227 and older, 2.204.5 and older, don’t have XSS protection for file parameter values, see [SECURITY-1793](https://www.jenkins.io/security/advisory/2020-03-25/#SECURITY-1793).","aliases":["CVE-2020-2214"],"modified":"2023-11-08T04:02:57.393518Z","published":"2022-05-24T17:22:20Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2022-12-29T01:09:19Z","nvd_published_at":"2020-07-02T15:15:00Z","cwe_ids":["CWE-79"],"severity":"MODERATE"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-2214"},{"type":"WEB","url":"https://github.com/jenkinsci/zap-pipeline-plugin/commit/bca4b087c66ead39398f54cdadc27c515e8ede31"},{"type":"PACKAGE","url":"https://github.com/jenkinsci/zap-pipeline-plugin"},{"type":"WEB","url":"https://jenkins.io/security/advisory/2020-07-02/#SECURITY-1811"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2020/07/02/7"}],"affected":[{"package":{"name":"com.vrondakis.zap:zap-pipeline","ecosystem":"Maven","purl":"pkg:maven/com.vrondakis.zap/zap-pipeline"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.10"}]}],"versions":["1.5.0","1.5.1","1.5.11","1.6","1.8.1","1.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-4c87-9xq5-5c35/GHSA-4c87-9xq5-5c35.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"}]}