CVE-2021-21628 Stored XSS vulnerability in Jenkins Build With Parameters Plugin
Stored XSS in Jenkins Build With Parameters Plugin allows attackers with Job/Configure permission to execute scripts in other users' browsers.
- 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-2021-21628?
CVE-2021-21628 is a medium-severity cross-site scripting vulnerability in Jenkins Build With Parameters Plugin, published on 30 Mar 2021. 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 Build With Parameters Plugin 1.5 and earlier does not escape parameter names and descriptions, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers with Job/Configure permission.
Weakness: CWE-79
Which versions are affected by CVE-2021-21628?
2 open source packages ship an affected version, including org.jenkins-ci.plugins:build-with-parameters. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.jenkins-ci.plugins:build-with-parameters Maven | All versions | 1.5.1 |
org.jenkins-ci.plugins:build-with-parameters Maven | All versions | 1.5.1 |
Products include Jenkins Build With Parameters.
How do I fix CVE-2021-21628?
Upgrade org.jenkins-ci.plugins:build-with-parameters to 1.5.1 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-2021-21628 being exploited?
There is no known exploitation of CVE-2021-21628 in the wild and no public exploit code.
Other vulnerabilities in Jenkins Build With Parameters Plugin
Sources
Also known as GHSA-xjrg-6fv9-6rjg.