CVE-2022-23108
Description
Jenkins Badge Plugin 1.9 and earlier has a stored XSS vulnerability due to unescaped descriptions and lack of protocol checking, allowing attackers with Item/Configure permission to execute arbitrary JavaScript.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Jenkins Badge Plugin 1.9 and earlier has a stored XSS vulnerability due to unescaped descriptions and lack of protocol checking, allowing attackers with Item/Configure permission to execute arbitrary JavaScript.
Vulnerability
Jenkins Badge Plugin version 1.9 and earlier does not escape the description field and does not check for allowed protocols when creating a badge. This allows an attacker to inject arbitrary HTML and JavaScript into the badge description or use dangerous protocols like javascript: in badge links, resulting in a stored cross-site scripting (XSS) vulnerability [1][3].
Exploitation
An attacker with Item/Configure permission can create or modify a badge with a malicious description or link. The attacker can craft a badge description containing JavaScript code or set the badge link to a javascript: URI. When other users view the job or build page containing the badge, the injected script executes in the context of their Jenkins session [1][2].
Impact
Successful exploitation allows the attacker to execute arbitrary JavaScript in the browser of any user viewing the affected badge. This can lead to session hijacking, credential theft, unauthorized actions on behalf of the victim, or defacement of Jenkins pages. The attack is stored, meaning the malicious badge persists until removed or the plugin is updated [1][3].
Mitigation
The issue is fixed in Badge Plugin version 1.9.1, released on January 12, 2022 [2]. Users should upgrade to version 1.9.1 or later. As a workaround, administrators can restrict Item/Configure permission to trusted users only. There is no other known workaround [1][4].
AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
org.jenkins-ci.plugins:badgeMaven | < 1.9.1 | 1.9.1 |
Affected products
2- Range: unspecified
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
4- github.com/advisories/GHSA-5qx5-vg5w-5mx3ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-23108ghsaADVISORY
- www.openwall.com/lists/oss-security/2022/01/12/6ghsamailing-listx_refsource_MLISTWEB
- www.jenkins.io/security/advisory/2022-01-12/ghsax_refsource_CONFIRMWEB
News mentions
1- Jenkins Security Advisory 2022-01-12Jenkins Security Advisories · Jan 12, 2022