{"id":"CVE-2018-9861","aliases":["DRUPAL-CORE-2018-003","EUVD-2022-3914","GHSA-g78h-pf65-46rv","UBUNTU-CVE-2018-9861","USN-5340-1","USN-5340-2"],"status":"published","title":"Enhanced Image plugin for CKEditor is vulnerable to Cross-site scripting (XSS)","description":"Cross-site scripting (XSS) vulnerability in the Enhanced Image (aka image2) plugin for CKEditor (in versions 4.5.10 through 4.9.1; fixed in 4.9.2), as used in Drupal 8 before 8.4.7 and 8.5.x before 8.5.2 and other products, allows remote attackers to inject arbitrary web script through a crafted IMG element.","severity":{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.01719,"percentile":0.77623,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-79"],"published":"2018-04-18T15:34:09Z","modified":"2026-10-24T10:47:25Z","fixes":[{"ecosystem":"Packagist","package":"drupal/core","fixed_in":["8.4.7","8.5.2"],"sources":["ghsa","osv"]},{"ecosystem":"npm","package":"ckeditor-dev","fixed_in":["4.9.2"],"sources":["ghsa","osv"]},{"ecosystem":"Packagist","package":"drupal/drupal","fixed_in":["8.4.7","8.5.2"],"sources":["ghsa","osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"ckeditor","fixed_in":["4.5.7+dfsg-2ubuntu0.16.04.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:18.04:LTS","package":"ckeditor","fixed_in":["4.5.7+dfsg-2ubuntu0.18.04.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"drupal/core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.0"},{"fixed":"8.4.7"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"drupal/core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.5.0"},{"fixed":"8.5.2"}]}]},{"source":"ghsa","ecosystem":"npm","package":"ckeditor-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.5.10"},{"fixed":"4.9.2"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"drupal/drupal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.0"},{"fixed":"8.4.7"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"drupal/drupal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.5"},{"fixed":"8.5.2"}]}]},{"source":"osv","ecosystem":"Packagist","package":"drupal/core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.0.0"},{"fixed":"8.4.7"}]},{"type":"ECOSYSTEM","events":[{"introduced":"8.5.0"},{"fixed":"8.5.2"}]}],"versions":["8.0.0","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","8.5.0","8.5.1"]},{"source":"osv","ecosystem":"Packagist","package":"drupal/core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.5.0"},{"fixed":"8.5.2"}]}],"versions":["8.5.0","8.5.1"]},{"source":"osv","ecosystem":"npm","package":"ckeditor-dev","ranges":[{"type":"SEMVER","events":[{"introduced":"4.5.10"},{"fixed":"4.9.2"}]}]},{"source":"osv","ecosystem":"Packagist","package":"drupal/core","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.0"},{"fixed":"8.4.7"}]}],"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"]},{"source":"osv","ecosystem":"Packagist","package":"drupal/drupal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.0"},{"fixed":"8.4.7"}]}],"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"]},{"source":"osv","ecosystem":"Packagist","package":"drupal/drupal","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"8.5"},{"fixed":"8.5.2"}]}],"versions":["8.5.0","8.5.0-alpha1","8.5.0-beta1","8.5.0-rc1","8.5.1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"ckeditor","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.5.7+dfsg-2ubuntu0.16.04.1~esm1"}]}],"versions":["4.4.4+dfsg1-3","4.5.6+dfsg-1","4.5.7+dfsg-1","4.5.7+dfsg-2"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"ckeditor","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.5.7+dfsg-2ubuntu0.18.04.1"}]}],"versions":["4.5.7+dfsg-2"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"ckeditor","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.5.7+dfsg-2ubuntu0.18.04.1"}]}],"versions":["4.5.7+dfsg-2"],"bundled":6},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"ckeditor","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.12.1+dfsg-1ubuntu0.1"}]}],"versions":["4.11.1+dfsg-1","4.12.1+dfsg-1"],"bundled":6},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"ckeditor","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.5.7+dfsg-2ubuntu0.16.04.1~esm1"}]}],"versions":["4.4.4+dfsg1-3","4.5.6+dfsg-1","4.5.7+dfsg-1","4.5.7+dfsg-2"],"bundled":5}],"products":[{"vendor":"ckeditor","product":"enhanced_image"},{"vendor":"drupal","product":"drupal"}],"references":[{"url":"https://github.com/ckeditor/ckeditor-dev/blob/master/CHANGES.md","tags":["x_refsource_CONFIRM","x_transferred","Release Notes","advisory","web","report"]},{"url":"https://www.drupal.org/sa-core-2018-003","tags":["x_refsource_CONFIRM","x_transferred","Third Party Advisory","advisory","web","report"]},{"url":"http://www.securityfocus.com/bid/103924","tags":["vdb-entry","x_refsource_BID","x_transferred","web"]},{"url":"https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html","tags":["x_refsource_MISC","x_transferred","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-9861","tags":["advisory"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2018-9861.yaml","tags":["web"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2018-9861.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-g78h-pf65-46rv"},{"url":"https://ubuntu.com/security/CVE-2018-9861","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-5340-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-9861","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-5340-2","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2020-9281","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-32808","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-32809","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-33829","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-37695","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2018-9861","description":"Cross-site scripting (XSS) vulnerability in the Enhanced Image (aka image2) plugin for CKEditor (in versions 4.5.10 through 4.9.1; fixed in 4.9.2), as used in Drupal 8 before 8.4.7 and 8.5.x before 8.5.2 and other products, allows remote attackers to inject arbitrary web script through a crafted IMG element.","status":"published","published":"2018-04-19T17:00:00Z","modified":"2024-08-05T07:24:56.351Z","updated_at":"2026-11-02T14:35:02.603326Z"}],"euvd":[{"id":"EUVD-2022-3914","description":"Cross-site scripting (XSS) vulnerability in the Enhanced Image (aka image2) plugin for CKEditor (in versions 4.5.10 through 4.9.1; fixed in 4.9.2), as used in Drupal 8 before 8.4.7 and 8.5.x before 8.5.2 and other products, allows remote attackers to inject arbitrary web script through a crafted IMG element.","status":"published","published":"2018-04-19T17:00:00Z","modified":"2024-08-05T07:24:56Z","updated_at":"2026-11-03T02:39:59.5072Z"}],"ghsa":[{"id":"GHSA-g78h-pf65-46rv","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.","status":"published","published":"2022-05-14T00:56:02Z","modified":"2024-02-05T10:54:45Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:37:35.293818Z"}],"nvd":[{"id":"CVE-2018-9861","description":"Cross-site scripting (XSS) vulnerability in the Enhanced Image (aka image2) plugin for CKEditor (in versions 4.5.10 through 4.9.1; fixed in 4.9.2), as used in Drupal 8 before 8.4.7 and 8.5.x before 8.5.2 and other products, allows remote attackers to inject arbitrary web script through a crafted IMG element.","status":"published","published":"2018-04-19T17:29:00.257Z","modified":"2026-06-17T02:07:18.5Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:04:25.506659Z"}],"osv":[{"id":"CVE-2018-9861","description":"Cross-site scripting (XSS) vulnerability in the Enhanced Image (aka image2) plugin for CKEditor (in versions 4.5.10 through 4.9.1; fixed in 4.9.2), as used in Drupal 8 before 8.4.7 and 8.5.x before 8.5.2 and other products, allows remote attackers to inject arbitrary web script through a crafted IMG element.","status":"published","published":"2018-04-19T17:29:00.257Z","modified":"2026-10-24T10:47:25.532383619Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:10.051046Z"},{"id":"GHSA-g78h-pf65-46rv","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.","status":"published","published":"2022-05-14T00:56:02Z","modified":"2025-12-10T23:41:15.971028Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:47.472172Z"},{"id":"UBUNTU-CVE-2018-9861","description":"Cross-site scripting (XSS) vulnerability in the Enhanced Image (aka image2) plugin for CKEditor (in versions 4.5.10 through 4.9.1; fixed in 4.9.2), as used in Drupal 8 before 8.4.7 and 8.5.x before 8.5.2 and other products, allows remote attackers to inject arbitrary web script through a crafted IMG element.","status":"published","published":"2018-04-19T17:29:00Z","modified":"2026-02-04T04:00:16.579986Z","cvss":[{"version":"3.0","score":6.1,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"updated_at":"2026-11-02T15:54:18.772093Z"},{"id":"DRUPAL-CORE-2018-003","description":"CKEditor, a third-party JavaScript library included in Drupal core, has [fixed a cross-site scripting (XSS) vulnerability](https://ckeditor.com/blog/CKEditor-4.9.2-with-a-security-patch-released/). The vulnerability stemmed from the fact that it was possible to execute XSS inside CKEditor when using the `image2` plugin (which Drupal 8 core also uses).\n\nWe would like to thank the CKEditor team for patching the vulnerability and coordinating the fix and release process, and matching the Drupal core security window.","status":"published","published":"2018-04-18T15:34:09Z","modified":"2025-12-10T23:41:15.971028Z","updated_at":"2026-11-02T15:46:13.900249Z"},{"id":"USN-5340-1","title":"ckeditor vulnerabilities","description":"Kyaw Min Thein discovered that CKEditor incorrectly handled\ncertain inputs. An attacker could possibly use this issue\nto execute arbitrary code. This issue only affects\nUbuntu 18.04 LTS. (CVE-2018-9861)\n\nMicha Bentkowski discovered that CKEditor incorrectly handled\ncertain inputs. An attacker could possibly use this issue to\nexecute arbitrary code. This issue only affects\nUbuntu 18.04 LTS and Ubuntu 20.04 LTS. (CVE-2020-9281)\n\nAnton Subbotin discovered that CKEditor incorrectly handled\ncertain inputs. An attacker could possibly use this issue to\nexecute arbitrary code. This issue only affects\nUbuntu 21.10. (CVE-2021-32808)\n\nAnton Subbotin discovered that CKEditor incorrectly handled\ncertain inputs. An attacker could possibly use this issue to\ninject arbitrary code. (CVE-2021-32809)\n\nOr Sahar discovered that CKEditor incorrectly handled certain\ninputs. An attacker could possibly use this issue to execute\narbitrary code. This issue only affects\nUbuntu 18.04 LTS and Ubuntu 20.04 LTS. (CVE-2021-33829)\n\nMika Kulmala discovered that CKEditor incorrectly handled\ncertain inputs. An attacker could possibly use this issue to\nexecute arbitrary code. (CVE-2021-37695)\n","status":"published","published":"2022-03-22T16:43:31Z","modified":"2026-04-27T16:19:04.04217959Z","updated_at":"2026-11-02T16:58:15.683829Z"},{"id":"USN-5340-2","title":"ckeditor vulnerabilities","description":"USN-5340-1 fixed several vulnerabilities in CKEditor.\nThis update provides the fixes for CVE-2018-9861, CVE-2020-9281,\nCVE-2021-32809, CVE-2021-33829 and CVE-2021-37695 for Ubuntu 16.04 ESM.\n\nOriginal advisory details:\n\nKyaw Min Thein discovered that CKEditor incorrectly handled\ncertain inputs. An attacker could possibly use this issue\nto execute arbitrary code. This issue only affects\nUbuntu 18.04 LTS. (CVE-2018-9861)\n\nMicha Bentkowski discovered that CKEditor incorrectly handled\ncertain inputs. An attacker could possibly use this issue to\nexecute arbitrary code. This issue only affects\nUbuntu 18.04 LTS and Ubuntu 20.04 LTS. (CVE-2020-9281)\n\nAnton Subbotin discovered that CKEditor incorrectly handled\ncertain inputs. An attacker could possibly use this issue to\nexecute arbitrary code. This issue only affects\nUbuntu 21.10. (CVE-2021-32808)\n\nAnton Subbotin discovered that CKEditor incorrectly handled\ncertain inputs. An attacker could possibly use this issue to\ninject arbitrary code. (CVE-2021-32809)\n\nOr Sahar discovered that CKEditor incorrectly handled certain\ninputs. An attacker could possibly use this issue to execute\narbitrary code. This issue only affects\nUbuntu 18.04 LTS and Ubuntu 20.04 LTS. (CVE-2021-33829)\n\nMika Kulmala discovered that CKEditor incorrectly handled\ncertain inputs. An attacker could possibly use this issue to\nexecute arbitrary code. (CVE-2021-37695)\n","status":"published","published":"2022-03-23T08:57:25Z","modified":"2026-06-25T13:31:05.424927326Z","updated_at":"2026-11-02T16:58:15.683829Z"}]}}
