CVE-2022-23108 Stored XSS vulnerability in Jenkins Badge Plugin
Stored XSS in Jenkins Badge Plugin allows attackers with configure permissions to inject scripts via badge descriptions, potentially leading to session hijacking or code execution.
- 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-23108?
CVE-2022-23108 is a medium-severity cross-site scripting vulnerability in Jenkins Badge Plugin, published on 12 Jan 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 Badge Plugin 1.9 and earlier does not escape the description and does not check for allowed protocols when creating a badge, 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-23108?
2 open source packages ship an affected version, including org.jenkins-ci.plugins:badge. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.jenkins-ci.plugins:badge Maven | All versions | 1.9.1 |
org.jenkins-ci.plugins:badge Maven | All versions | 1.9.1 |
Products include Jenkins Badge.
How do I fix CVE-2022-23108?
Upgrade org.jenkins-ci.plugins:badge to 1.9.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-2022-23108 being exploited?
There is no known exploitation of CVE-2022-23108 in the wild and no public exploit code.
Other vulnerabilities in Jenkins Badge Plugin
Sources
Also known as GHSA-5qx5-vg5w-5mx3.