Technical impact
Jenkins allows an agent to send an exception that implements the Stapler HttpResponse interface to the controller, which the controller then renders within a web page without proper sanitisation. An attacker who can control a Jenkins agent can therefore inject arbitrary HTML or JavaScript into the controller’s UI. The resulting cross‑site scripting can steal user session cookies, deface pages or facilitate further malicious actions that depend on user interaction with the Jenkins web interface.
Affected Systems
The issue exists in Jenkins releases up to and including 2.587 and the long‑term support version 2.580.1 and earlier. Users running any of these versions are susceptible unless the application is upgraded beyond the specified releases.
Risk and Exploitability
The vulnerability is exploitable when an attacker has the ability to run or influence agent processes connected to the Jenkins controller. Because the attack vector is internal to the Jenkins deployment, the exposure depends on how the agent plugins and build processes are secured. The EPSS score is < 1% and the vulnerability is not listed in the KEV catalog, while the CVSS score of 6.1 indicates medium severity. The lack of external exploitation reports and the inability to trigger the flaw from an unauthenticated remote host suggest a moderate risk. Nonetheless, any abuse of the XSS ability can lead to theft of credentials or compromise of the Jenkins UI.