{"schemaVersion":3,"id":"CVE-2018-9861","aliases":["UBUNTU-CVE-2018-9861","GHSA-g78h-pf65-46rv","DRUPAL-CORE-2018-003"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2018-04-19T17:00:00.000Z","modified":"2024-08-05T07:24:56.351Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.1,"severity":"medium","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":6.1,"severity":"medium","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4.3,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":6.1,"severity":"medium","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":7.2,"impact":4.5,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Npm","score":6.1,"severity":"medium","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":7.2,"impact":4.5,"computed":true}]},"epss":{"probability":0.01719,"percentile":0.77114,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":-0.03300000000000004,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.01752},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.01752,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.01752,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.01752,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.01752,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.01752,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.01752,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01752,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02002,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01752,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01752,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01752,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01752,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01752,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01752,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01719,"percentile":0.77114}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.01752,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.01752,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02002,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.01752,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.01752,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.01752,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.01752,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.01752,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.01752,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.01719,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.01719,"percentile":0.77114}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"}],"affected":[{"vendor":"ckeditor","product":"enhanced_image","name":"enhanced image","label":"enhanced_image","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.5.10, < 4.9.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.5.10, < 4.9.2","eol":null,"hubHref":"/vendor/ckeditor/enhanced_image"},{"vendor":"drupal","product":"core","name":"drupal/core","label":"core","ecosystem":"Packagist","cpePart":null,"purl":"pkg:composer/drupal/core","purlType":"composer","versions":[{"text":"≥ 8.5.0, < 8.5.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 8.0, < 8.4.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 8.5.0, < 8.5.2 | ≥ 8.0, < 8.4.7","eol":null,"hubHref":null},{"vendor":"drupal","product":"drupal","name":"drupal/drupal","label":"drupal","ecosystem":"Packagist","cpePart":null,"purl":"pkg:composer/drupal/drupal","purlType":"composer","versions":[{"text":"≥ 8.0, < 8.4.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 8.5, < 8.5.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 8.0, < 8.4.7 | ≥ 8.5, < 8.5.2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"ckeditor","name":"ckeditor","label":"ckeditor","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/ckeditor","purlType":"deb","versions":[{"text":"< 4.5.7+dfsg-2ubuntu0.16.04.1~esm1","noFixRecorded":false,"fixedIn":null},{"text":"< 4.5.7+dfsg-2ubuntu0.18.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.5.7+dfsg-2ubuntu0.16.04.1~esm1 | < 4.5.7+dfsg-2ubuntu0.18.04.1","eol":null,"hubHref":null},{"vendor":"drupal","product":"drupal","name":"drupal","label":"drupal","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 8.0.0, < 8.4.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 8.5.0, < 8.5.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 8.0.0, < 8.4.7 | ≥ 8.5.0, < 8.5.2","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"drupal","label":"Drupal","category":"server-app"}},"hubHref":"/vendor/drupal/drupal"},{"vendor":"Npm","product":"ckeditor-dev","name":"ckeditor-dev","label":"ckeditor-dev","ecosystem":"Npm","cpePart":null,"purl":"pkg:npm/ckeditor-dev","purlType":"npm","versions":[{"text":"≥ 4.5.10, < 4.9.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 4.5.10, < 4.9.2","eol":null,"hubHref":null}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/ckeditor/ckeditor-dev/blob/master/CHANGES.md","label":"github.com/ckeditor/ckeditor-dev/blob/master/CHANGES.md","hostname":"github.com","tags":["X Refsource CONFIRM","Release Notes","REPORT","WEB"]},{"url":"https://www.drupal.org/sa-core-2018-003","label":"www.drupal.org/sa-core-2018-003","hostname":"www.drupal.org","tags":["X Refsource CONFIRM","Third Party Advisory","REPORT","WEB"]},{"url":"http://www.securityfocus.com/bid/103924","label":"www.securityfocus.com/bid/103924","hostname":"www.securityfocus.com","tags":["VDB Entry","X Refsource BID","WEB"]},{"url":"https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html","label":"www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html","hostname":"www.oracle.com","tags":["X Refsource MISC","WEB"]},{"url":"https://ubuntu.com/security/CVE-2018-9861","label":"ubuntu.com/security/CVE-2018-9861","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-5340-1","label":"ubuntu.com/security/notices/USN-5340-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-9861","label":"www.cve.org/CVERecord?id=CVE-2018-9861","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-5340-2","label":"ubuntu.com/security/notices/USN-5340-2","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-9861","label":"nvd.nist.gov/vuln/detail/CVE-2018-9861","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2018-9861.yaml","label":"github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2018-9861.yaml","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2018-9861.yaml","label":"github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2018-9861.yaml","hostname":"github.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["USN-5340-1","USN-5340-2"],"duplicates":[],"related":["USN-5340-1","USN-5340-2"]},"timeline":[{"kind":"published","date":"2018-04-19T17:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T07:24:56.351Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":25,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T02:58:55.227Z","stale":false,"partial":false}}