high8.0
CVE-2024-23905
Content-Security-Policy disabled by Red Hat Dependency Analytics Jenkins Plugin
Impact
Jenkins sets the Content-Security-Policy header to static files served by Jenkins (specifically DirectoryBrowserSupport), such as workspaces, /userContent, or archived artifacts, unless a Resource Root URL is specified. Red Hat Dependency Analytics Plugin 0.7.1 and earlier globally disables the Content-Security-Policy header for static files served by Jenkins whenever the 'Invoke Red Hat Dependency Analytics (RHDA)' build step is executed. This allows cross-site scripting (XSS) attacks by users with the ability to control files in workspaces, archived artifacts, etc.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| maven | io.jenkins.plugins:redhat-dependency-analytics | < 0.9.0 | 0.9.0 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Jenkins | Red Hat Dependency Analytics | through 0.7.1 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- http://www.openwall.com/lists/oss-security/2024/01/24/6
- https://www.jenkins.io/security/advisory/2024-01-24/#SECURITY-3322
- https://github.com/advisories/GHSA-x22x-5pp9-8v7f
- https://nvd.nist.gov/vuln/detail/CVE-2024-23905
- https://github.com/jenkinsci/redhat-dependency-analytics-plugin/commit/123e37795eb69f533a1cd8bd74113ebb1fdbdcda