CVE-2023-39151
Jenkins Stored Cross-site Scripting vulnerability
Description
Jenkins applies formatting to the console output of builds, transforming plain URLs into hyperlinks. Jenkins 2.415 and earlier, 2.414 and earlier, and LTS 2.401.2 and earlier does not sanitize or properly encode URLs of these hyperlinks in build logs. This results in a stored cross-site scripting (XSS) vulnerability exploitable by attackers able to control build log contents. Jenkins 2.416, 2.414.1, and LTS 2.401.3 encodes URLs of affected hyperlink annotations in build logs.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.jenkins-ci.main » jenkins-core | < 2.401.3>= 2.402, < 2.414.1>= 2.415, < 2.416 | 2.401.3, 2.414.1, 2.416 |
Blast radius
55% of the dependent artifacts (63) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 8,521 |
| 2 hops | 1,048 |
| 3 hops | 35 |
| 4 hops | 81 |
| 5 hops | 26 |
| 6 hops | 66 |
Most used dependents
- org.jenkins-ci.main » jenkins-test-harness99 usages
- org.jenkins-ci.plugins » job-dsl71 usages
- org.jenkins-ci.main » jenkins-war62 usages
- org.jenkins-ci.main » jenkins-test-harness-tools37 usages
- org.jenkins-ci.plugins » config-file-provider32 usages
- io.jenkins.blueocean » blueocean-rest-impl12 usages
- org.csanchez.jenkins.plugins » kubernetes11 usages
- io.jenkins.blueocean » blueocean-pipeline-api-impl9 usages
- org.jenkins-ci.lib » xtrigger-lib9 usages
- org.jenkins-ci.plugins » ws-cleanup6 usages
- org.jenkins-ci.plugins » resource-disposer6 usages
- org.jenkins-ci.plugins » ldap5 usages
- io.jenkins.jenkinsfile-runner » setup4 usages
- io.jenkins.jenkinsfile-runner » payload-dependencies4 usages
- com.synopsys.integration » jenkins-common4 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2023-39151 | nvd.nist.gov |
| Package | jenkinsci/jenkins | github.com |
| Web | jenkinsci/jenkins commit 1b9f1cc | github.com |
| Web | CVEProject/cvelist CVE-2023-39151.json | github.com |
| Web | security/advisory/2023-07-26 | jenkins.io |
| Web | lists/oss-security/2023/07/26/2 | openwall.com |
