CVE-2021-21635 Stored XSS vulnerability in Jenkins REST List Parameter Plugin
Stored XSS in Jenkins REST List Parameter Plugin allows attackers with Job/Configure permission to execute arbitrary scripts in victim 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-21635?
CVE-2021-21635 is a medium-severity cross-site scripting vulnerability in Jenkins REST List Parameter 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 REST List Parameter Plugin 1.3.0 and earlier does not escape a parameter name reference in embedded JavaScript, 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-21635?
2 open source packages ship an affected version, including io.jenkins.plugins:rest-list-parameter. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
io.jenkins.plugins:rest-list-parameter Maven | All versions | 1.3.1 |
io.jenkins.plugins:rest-list-parameter Maven | All versions | 1.3.1 |
Products include Jenkins Rest List Parameter.
How do I fix CVE-2021-21635?
Upgrade io.jenkins.plugins:rest-list-parameter to 1.3.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-21635 being exploited?
There is no known exploitation of CVE-2021-21635 in the wild and no public exploit code.
Other vulnerabilities in Jenkins REST List Parameter Plugin
Sources
Also known as GHSA-x3m6-vcp7-98mr.