VYPR
Moderate severityNVD Advisory· Published Jan 12, 2022· Updated Aug 3, 2024

CVE-2022-23108

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.

PackageAffected versionsPatched versions
org.jenkins-ci.plugins:badgeMaven
< 1.9.11.9.1

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

4

News mentions

1