{"id":"GHSA-cvxj-4745-843x","summary":"Content-Security-Policy protection for user content disabled by Jenkins ScreenRecorder Plugin","details":"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.\n\nScreenRecorder Plugin 0.7 and earlier programmatically updates [the Java system property](https://www.jenkins.io/doc/book/managing/system-properties/#hudson-model-directorybrowsersupport-csp) allowing administrators to customize the `Content-Security-Policy` header for static files served by Jenkins to include `media-src: 'self'`. On a Jenkins instance with default configuration, this effectively disables all other directives in the default rule set, including `script-src`. This allows cross-site scripting (XSS) attacks by users with the ability to control files in workspaces, archived artifacts, etc.\n\nJenkins instances with [Resource Root URL](https://www.jenkins.io/doc/book/security/user-content/#resource-root-url) configured are unaffected.","aliases":["CVE-2022-43433"],"modified":"2023-11-08T04:10:44.013151Z","published":"2022-10-19T19:00:22Z","database_specific":{"cwe_ids":["CWE-693"],"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2022-10-19T22:03:54Z","nvd_published_at":"2022-10-19T16:15:00Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-43433"},{"type":"PACKAGE","url":"https://github.com/jenkinsci/screenrecorder-plugin"},{"type":"WEB","url":"https://www.jenkins.io/security/advisory/2022-10-19/#SECURITY-2864"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2022/10/19/3"}],"affected":[{"package":{"name":"io.jenkins.plugins:screenrecorder","ecosystem":"Maven","purl":"pkg:maven/io.jenkins.plugins/screenrecorder"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.7"}]}],"versions":["0.2","0.3","0.4","0.5","0.6","0.7"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/10/GHSA-cvxj-4745-843x/GHSA-cvxj-4745-843x.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"}]}