CVE-2022-25189 Stored Cross-site Scripting vulnerability in Jenkins Custom Checkbox Parameter Plugin
Attackers with configure permissions can inject malicious scripts via 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-2022-25189?
CVE-2022-25189 is a medium-severity cross-site scripting vulnerability in Jenkins Custom Checkbox Parameter Plugin, published on 15 Feb 2022. 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 Custom Checkbox Parameter Plugin 1.1 and earlier does not escape parameter names of custom checkbox parameters, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers with Item/Configure permission.
Weakness: CWE-79
Which versions are affected by CVE-2022-25189?
2 open source packages ship an affected version, including io.jenkins.plugins:custom-checkbox-parameter. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
io.jenkins.plugins:custom-checkbox-parameter Maven | All versions | 1.2 |
io.jenkins.plugins:custom-checkbox-parameter Maven | All versions | 1.2 |
Products include Jenkins Custom Checkbox Parameter.
How do I fix CVE-2022-25189?
Upgrade io.jenkins.plugins:custom-checkbox-parameter to 1.2 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-2022-25189 being exploited?
There is no known exploitation of CVE-2022-25189 in the wild and no public exploit code.
Other vulnerabilities in Jenkins Custom Checkbox Parameter Plugin
Sources
Also known as GHSA-6q8r-5pm6-v2q8.