Cross-site scripting vulnerability exists in Jenkins and Stapler Plugin
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.jenkins-ci.main:jenkins-core Maven |
|
|
| org.kohsuke.stapler:stapler-parent Maven |
|
|
| Product | Affected | Fixed in |
|---|---|---|
| org.jenkins-ci.main:jenkins-core Maven |
|
|
| org.kohsuke.stapler:stapler-parent Maven |
|
|
A cross-site scripting vulnerability exists in Jenkins 2.132 and earlier, 2.121.1 and earlier in the Stapler web framework's org/kohsuke/stapler/Stapler.java that allows attackers with the ability to control the existence of some URLs in Jenkins to define JavaScript that would be executed in another user's browser when that other user views HTTP 404 error pages while Stapler debug mode is enabled.
From the CVE record · mitre
Stapler in Jenkins is vulnerable to cross-site scripting. An attacker who can control the existence of certain Jenkins URLs can cause JavaScript to run in another user's browser when that user views an HTTP 404 page while Stapler debug mode is enabled.
Check Jenkins installations using jenkins-core versions below 2.121.2 or from 2.122 up to but not including 2.132, and installations using stapler-parent versions below 1.250.1.