MediumGHSA-g78h-pf65-46rvCVE-2018-9861DRUPAL-CORE-2018-003
Enhanced Image plugin for CKEditor is vulnerable to Cross-site scripting (XSS)
Published 14 May 2022 · Updated 10 Dec 2025
Affected packages
drupal/coreComposer
- Affected
- >=8.5.0 <8.5.2
- Fixed in
- 8.5.2
Update to the fixed version for your release line, for example:
composer require drupal/core:^8.5.2ckeditor-devnpm
- Affected
- >=4.5.10 <4.9.2
- Fixed in
- 4.9.2
Update to the fixed version for your release line, for example:
npm install ckeditor-dev@4.9.2drupal/coreComposer
- Affected
- >=8.0 <8.4.7
- Fixed in
- 8.4.7
Update to the fixed version for your release line, for example:
composer require drupal/core:^8.4.7drupal/drupalComposer
- Affected
- >=8.0 <8.4.7
- Fixed in
- 8.4.7
Update to the fixed version for your release line, for example:
composer require drupal/drupal:^8.4.7drupal/drupalComposer
- Affected
- >=8.5 <8.5.2
- Fixed in
- 8.5.2
Update to the fixed version for your release line, for example:
composer require drupal/drupal:^8.5.2Details
The Enhanced Image (aka 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.
Is GHSA-g78h-pf65-46rv in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected drupal/core, and gives you the command that fixes it.
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2018-9861
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2018-9861.yaml
- Linkgithub.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2018-9861.yaml
- Linkgithub.com/ckeditor/ckeditor-dev/blob/master/CHANGES.md
- Linkwww.drupal.org/sa-core-2018-003
- Linkwww.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html
- Linkwww.securityfocus.com/bid/103924
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.