CVE-2021-21699 Stored XSS vulnerability in Jenkins Active Choices Plugin
Attackers with Job/Configure permission can inject malicious scripts via unescaped parameter names, leading to stored XSS in Jenkins.
- 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-21699?
CVE-2021-21699 is a medium-severity cross-site scripting vulnerability in Jenkins Active Choices Plugin, published on 12 Nov 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 Active Choices Plugin 2.5.6 and earlier does not escape the parameter name of reactive parameters and dynamic reference parameters, 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-21699?
2 open source packages ship an affected version, including org.biouno:uno-choice. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.biouno:uno-choice Maven | All versions | 2.5.7 |
org.biouno:uno-choice Maven | All versions | 2.5.7 |
Products include Jenkins Active Choices.
How do I fix CVE-2021-21699?
Upgrade org.biouno:uno-choice to 2.5.7 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-21699 being exploited?
There is no known exploitation of CVE-2021-21699 in the wild and no public exploit code.
Other vulnerabilities in Jenkins Active Choices Plugin
Sources
Also known as GHSA-rp4x-h577-chvq.