PT-2022-19382 · Jenkins · Jenkins Job Generator Plugin+1

Daniel Beck

+2

·

Published

2022-04-12

·

Updated

2023-11-17

·

CVE-2022-29042

CVSS v3.1

5.4

Medium

VectorAV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Name of the Vulnerable Software and Affected Versions Jenkins Job Generator Plugin versions 1.22 and earlier
Description The issue is related to a stored cross-site scripting (XSS) vulnerability. It occurs because the Jenkins Job Generator Plugin does not escape the name and description of Generator Parameter and Generator Choice parameters on Job Generator jobs' Build With Parameters views. This vulnerability can be exploited by attackers with Item/Configure permission. Exploitation requires that parameters are listed on another page and that those pages are not hardened to prevent exploitation. However, Jenkins (core) has prevented exploitation of vulnerabilities of this kind on the "Build With Parameters" and "Parameters" pages since version 2.44 and LTS 2.32.2.
Recommendations For Jenkins Job Generator Plugin versions 1.22 and earlier, consider disabling the Generator Parameter and Generator Choice parameters on Job Generator jobs' Build With Parameters views until a patch is available. Restrict access to the Build With Parameters views to minimize the risk of exploitation. Avoid using the name and description fields of Generator Parameter and Generator Choice parameters in the affected API endpoints until the issue is resolved. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

XSS

Weakness Enumeration

Related Identifiers

CVE-2022-29042
GHSA-F3JQ-9C79-J65M

Affected Products

Jenkins
Jenkins Job Generator Plugin