Description
Jenkins Pipeline: Build Step Plugin 2.18 and earlier does not escape job names in a JavaScript expression used in the Pipeline Snippet Generator, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers able to control job names.
Remediation
References
http://www.openwall.com/lists/oss-security/2023/02/15/4
https://www.jenkins.io/security/advisory/2023-02-15/#SECURITY-3019
Related Vulnerabilities
CVE-2018-10054 Vulnerability in maven package com.h2database:h2
CVE-2019-3772 Vulnerability in maven package org.springframework.integration:spring-integration-xml
CVE-2020-2126 Vulnerability in maven package com.dubture.jenkins:digitalocean-plugin
CVE-2018-16486 Vulnerability in npm package defaults-deep
CVE-2023-39152 Vulnerability in maven package org.jenkins-ci.plugins:gradle