CVE-2020-2214 Content-Security-Policy protection for user content disabled by Jenkins ZAP Pipeline Plugin
Attackers can execute arbitrary scripts in Jenkins workspaces because the plugin disables Content-Security-Policy protections for user-generated content.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2020-2214?
CVE-2020-2214 is a medium-severity cross-site scripting vulnerability in Jenkins ZAP Pipeline Plugin, published on 2 Jul 2020. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.
Official description
Jenkins ZAP Pipeline Plugin 1.9 and earlier programmatically disables Content-Security-Policy protection for user-generated content in workspaces, archived artifacts, etc. that Jenkins offers for download.
Weakness: CWE-79
Which versions are affected by CVE-2020-2214?
2 open source packages ship an affected version, including com.vrondakis.zap:zap-pipeline. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
com.vrondakis.zap:zap-pipeline Maven | All versions | 1.10 |
com.vrondakis.zap:zap-pipeline Maven | All versions | 1.10 |
Products include Jenkins Zap Pipeline.
How do I fix CVE-2020-2214?
Upgrade com.vrondakis.zap:zap-pipeline to 1.10 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2020-2214 being exploited?
There is no known exploitation of CVE-2020-2214 in the wild and no public exploit code.
Sources
Also known as GHSA-4c87-9xq5-5c35.