Medium, CVSS 5.4MavenPublished
Content-Security-Policy protection for user content disabled by Jenkins ZAP Pipeline Plugin
CVE-2020-2214 · GHSA-4c87-9xq5-5c35
- Affected
- Maven com.vrondakis.zap:zap-pipeline < 1.10
- Fixed in
- 1.10· Vendor fix available
- Issue
- Jenkins sets the Content-Security-Policy header to static files served by Jenkins (specifically DirectoryBrowserSupport), such as workspaces, /userContent, or archived artifacts. ZAP 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. Jenkins instances with Resource Root URL configured are largely unaffected. A possible exception are file parameter downloads. The behavior of those depends on the specific version of Jenkins: - 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. - 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…
Recommended action: Upgrade to 1.10 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.