CVE-2022-29042
Published: 12 April 2022
Summary
CVE-2022-29042 is a medium-severity Cross-site Scripting (CWE-79) vulnerability in Jenkins Job Generator. Its CVSS base score is 5.4 (Medium).
Operationally, ranked at the 44.3th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.
Deeper analysis
The Jenkins Job Generator Plugin 1.22 and earlier contains a stored cross-site scripting vulnerability because it fails to escape the name and description fields of Generator Parameter and Generator Choice parameters when rendering Job Generator jobs' Build With Parameters views. The affected component is the Jenkins Job Generator Plugin, and the issue is tracked as CWE-79 with a CVSS 3.1 base score of 5.4.
Attackers who possess Item/Configure permission on a Jenkins instance can inject malicious scripts through these parameter fields. Once stored, the scripts execute in the browsers of other users who view the affected Build With Parameters pages, enabling limited impacts on confidentiality and integrity within the Jenkins context.
The Jenkins security advisory published on 2022-04-12 at the referenced URL details the vulnerability and the corresponding fixes released for the plugin.
EPSS for this CVE rose sharply from a low baseline to a peak of 0.3160 on 2025-12-11 before receding to the current value of 0.0022, indicating that exploitation interest emerged well after initial disclosure.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2022-1716
Vulnerability details
Jenkins Job Generator Plugin 1.22 and earlier does not escape the name and description of Generator Parameter and Generator Choice parameters on Job Generator jobs' Build With Parameters views, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers…
more
with Item/Configure permission.
- CWE(s)
Related Threats
No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.
Affected Assets
Mitigating Controls
Likely Mitigating Controls AI
Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.
Penetration testing submits XSS payloads to web applications, detecting cross-site scripting flaws for subsequent remediation.
Validates web inputs to reject script-related content that could produce XSS.
Output validation against expected content can reject or sanitize script content in generated web pages, reducing XSS exploitability.