CVE-2022-27197
Stored Cross-site Scripting vulnerability in Jenkins Dashboard View Plugin
Description
Jenkins Dashboard View Plugin 2.18 and earlier does not perform URL validation for the Iframe Portlet's Iframe source URL, resulting in a stored cross-site scripting (XSS) vulnerability exploitable by attackers able to configure views.
Dashboard View Plugin 2.18.1 performs URL validation for the Iframe Portlet’s Iframe source URL. Additionally, Dashboard View Plugin 2.18.1 sets the sandbox attribute for the iframe to restrict the included page.
In case of problems, the Java system propertyhudson.plugins.view.dashboard.core.IframePortlet.sandboxAttributeValue can be used to customize the sandbox attribute value. The Java system property hudson.plugins.view.dashboard.core.IframePortlet.doNotUseSandbox can be used to disable the sandbox completely.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.jenkins-ci.plugins » dashboard-view | < 2.18.1 | 2.18.1 |
Blast radius
42% of the dependent artifacts (3) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 132 |
Most used dependents
- org.jenkins-ci.plugins » vectorcast-execution0 usages
- org.jenkins-ci.plugins » vmanager-plugin0 usages
- javagh.jenkins » mashup-portlets-plugin0 usages
- org.jenkins-ci.plugins » project-build-times0 usages
- org.jenkins-ci.plugins » project-stats-plugin0 usages
- org.jenkins-ci.plugins » all-changes0 usages
- org.jenkins-ci.plugins » klocwork0 usages
Computed from the dependency graph of build 20261203.1441 (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-27197 | nvd.nist.gov |
| Package | jenkinsci/dashboard-view-plugin | github.com |
| Web | jenkinsci/dashboard-view-plugin commit 942c5c7 | github.com |
| Web | security/advisory/2022-03-15 | jenkins.io |
| Web | lists/oss-security/2022/03/15/2 | openwall.com |
