{"id":"GHSA-g78h-pf65-46rv","aliases":["CVE-2018-9861","DRUPAL-CORE-2018-003"],"title":"Enhanced Image plugin for CKEditor is vulnerable to Cross-site scripting (XSS)","description":"The Enhanced Image (aka [image2](https://github.com/ckeditor/ckeditor4/tree/master/plugins/image2)) plugin for CKEditor in versions 4.5.10 through 4.9.1; fixed in 4.9.2, and as used in Drupal 8 before 8.4.7 and 8.5.x before 8.5.2 and other products, is vulnerable to cross-site scripting because it allows remote attackers to inject arbitrary web script through a crafted IMG element.","severity":"medium","score":6.1,"published":"2022-05-14T00:56:02.000Z","modified":"2025-12-10T23:41:15.971Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"drupal/core","ranges":[{"events":[{"introduced":"8.5.0"},{"fixed":"8.5.2"}],"type":"ECOSYSTEM"}],"versions":["8.5.0","8.5.1"],"fixed":["8.5.2"]},{"ecosystem":"npm","name":"ckeditor-dev","ranges":[{"events":[{"introduced":"4.5.10"},{"fixed":"4.9.2"}],"type":"SEMVER"}],"versions":[],"fixed":["4.9.2"]},{"ecosystem":"Packagist","name":"drupal/core","ranges":[{"events":[{"introduced":"8.0"},{"fixed":"8.4.7"}],"type":"ECOSYSTEM"}],"versions":["8.0.0","8.0.0-beta10","8.0.0-beta11","8.0.0-beta12","8.0.0-beta13","8.0.0-beta14","8.0.0-beta15","8.0.0-beta16","8.0.0-beta6","8.0.0-beta7","8.0.0-beta8","8.0.0-beta9","8.0.0-rc1","8.0.0-rc2","8.0.0-rc3","8.0.0-rc4","8.0.1","8.0.2","8.0.3","8.0.4","8.0.5","8.0.6","8.1.0","8.1.0-beta1","8.1.0-beta2","8.1.0-rc1","8.1.1","8.1.10","8.1.2","8.1.3","8.1.4","8.1.5","8.1.6","8.1.7","8.1.8","8.1.9","8.2.0","8.2.0-beta1","8.2.0-beta2","8.2.0-beta3","8.2.0-rc1","8.2.0-rc2","8.2.1","8.2.2","8.2.3","8.2.4","8.2.5","8.2.6","8.2.7","8.2.8","8.3.0","8.3.0-alpha1","8.3.0-beta1","8.3.0-rc1","8.3.0-rc2","8.3.1","8.3.2","8.3.3","8.3.4","8.3.5","8.3.6","8.3.7","8.3.8","8.3.9","8.4.0","8.4.0-alpha1","8.4.0-beta1","8.4.0-rc1","8.4.0-rc2","8.4.1","8.4.2","8.4.3","8.4.4","8.4.5","8.4.6"],"fixed":["8.4.7"]},{"ecosystem":"Packagist","name":"drupal/drupal","ranges":[{"events":[{"introduced":"8.0"},{"fixed":"8.4.7"}],"type":"ECOSYSTEM"}],"versions":["8.0.0","8.0.0-alpha14","8.0.0-alpha15","8.0.0-beta1","8.0.0-beta10","8.0.0-beta11","8.0.0-beta12","8.0.0-beta13","8.0.0-beta14","8.0.0-beta15","8.0.0-beta16","8.0.0-beta2","8.0.0-beta3","8.0.0-beta4","8.0.0-beta5","8.0.0-beta6","8.0.0-beta7","8.0.0-beta9","8.0.0-rc1","8.0.0-rc2","8.0.0-rc3","8.0.0-rc4","8.0.1","8.0.2","8.0.3","8.0.4","8.0.5","8.0.6","8.1.0","8.1.0-beta1","8.1.0-beta2","8.1.0-rc1","8.1.1","8.1.10","8.1.2","8.1.3","8.1.4","8.1.5","8.1.6","8.1.7","8.1.8","8.1.9","8.2.0","8.2.0-beta1","8.2.0-beta2","8.2.0-beta3","8.2.0-rc1","8.2.0-rc2","8.2.1","8.2.2","8.2.3","8.2.4","8.2.5","8.2.6","8.2.7","8.2.8","8.3.0","8.3.0-alpha1","8.3.0-beta1","8.3.0-rc1","8.3.0-rc2","8.3.1","8.3.2","8.3.3","8.3.4","8.3.5","8.3.6","8.3.7","8.3.8","8.3.9","8.4.0","8.4.0-alpha1","8.4.0-beta1","8.4.0-rc1","8.4.0-rc2","8.4.1","8.4.2","8.4.3","8.4.4","8.4.5","8.4.6"],"fixed":["8.4.7"]},{"ecosystem":"Packagist","name":"drupal/drupal","ranges":[{"events":[{"introduced":"8.5"},{"fixed":"8.5.2"}],"type":"ECOSYSTEM"}],"versions":["8.5.0","8.5.0-alpha1","8.5.0-beta1","8.5.0-rc1","8.5.1"],"fixed":["8.5.2"]}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2018-9861","https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2018-9861.yaml","https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2018-9861.yaml","https://github.com/ckeditor/ckeditor-dev/blob/master/CHANGES.md","https://www.drupal.org/sa-core-2018-003","https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html","http://www.securityfocus.com/bid/103924"],"sources":[{"name":"OSV","id":"GHSA-g78h-pf65-46rv","modified":"2025-12-10T23:41:15.971028Z","url":"https://osv.dev/vulnerability/GHSA-g78h-pf65-46rv"}],"assessments":[{"source":"OSV","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","score":6.1}]}