CVE-2022-45380
Jenkins JUnit Plugin subject to Cross-site Scripting via URL conversion
Description
JUnit Plugin 1159.v0b_396e1e07dd and earlier converts HTTP(S) URLs in test report output to clickable links.
This is done in an unsafe manner, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers with Item/Configure permission.
JUnit Plugin 1160.vf1f01a_a_ea_b_7f no longer converts URLs to clickable links.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.jenkins-ci.plugins » junit | < 1160.vf1f01a_a_ea_b_7f | 1160.vf1f01a_a_ea_b_7f |
Blast radius
43% of the dependent artifacts (184) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 5,880 |
| 2 hops | 8,348 |
| 3 hops | 7,669 |
| 4 hops | 1,891 |
| 5 hops | 304 |
| 6 hops | 66 |
Most used dependents
- org.jenkins-ci.plugins.workflow » workflow-basic-steps325 usages
- org.jenkins-ci.plugins » git227 usages
- org.jenkins-ci.plugins » matrix-project204 usages
- org.jenkins-ci.plugins.workflow » workflow-aggregator136 usages
- org.jenkins-ci.plugins » mailer132 usages
- org.jenkins-ci.main » maven-plugin131 usages
- org.jenkins-ci.main » jenkins-test-harness99 usages
- org.jenkinsci.plugins » pipeline-model-definition68 usages
- org.jenkins-ci.plugins » github-branch-source48 usages
- org.jenkins-ci.plugins » display-url-api46 usages
- org.jenkins-ci.plugins » dashboard-view31 usages
- org.jenkins-ci.plugins » parameterized-trigger27 usages
- org.jenkins-ci.plugins » envinject25 usages
- com.coravy.hudson.plugins.github » github22 usages
- org.jenkins-ci.plugins » cloudbees-bitbucket-branch-source21 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-2022-45380 | nvd.nist.gov |
| Package | jenkinsci/junit-plugin | github.com |
| Web | jenkinsci/junit-plugin commit f1f01aa | github.com |
| Web | security/advisory/2022-11-15 | jenkins.io |
| Web | lists/oss-security/2022/11/15/4 | openwall.com |
