Enhanced Image plugin for CKEditor is vulnerable to Cross-site scripting (XSS)
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Composer package | drupal/core | >= 8.5.0, < 8.5.2, >= 8.0, < 8.4.7 | 8.5.2, 8.4.7 |
| Composer package | drupal/drupal | >= 8.0, < 8.4.7, >= 8.5, < 8.5.2 | 8.4.7, 8.5.2 |
| Drupal (core) | drupal/core | >= 8.5.0, < 8.5.2, >= 8.0, < 8.4.7, >= 8.0, < 8.4.7, >= 8.5, < 8.5.2 | 8.5.2, 8.4.7 |
| npm package | ckeditor-dev | >= 4.5.10, < 4.9.2 | 4.9.2 |
References
- https://www.drupal.org/sa-core-2018-003
- 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.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html
- http://www.securityfocus.com/bid/103924
- CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N- Weakness (CWE)
CWE-79- Platform
- Composer, Drupal, npm
- Package
drupal/core, drupal/drupal, ckeditor-dev- Disclosed
- 18.04.2018
- Updated
- 11.10.2026 12:17
Sources and licenses
OSV / GitHub Advisory Database - GHSA-g78h-pf65-46rv - CC BY 4.0
OSV / GitHub Advisory Database - DRUPAL-CORE-2018-003 - CC BY-SA 2.0; code GPL-2.0-or-later
Vulnerability history: drupal/drupal
All published vulnerabilities of this package (Composer package), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 81
- First → latest
- 03.2018 11.2024
- Without a fix
- 0
- Exploited in attacks
- 4
Severity breakdown
- Critical 9
- High 28
- Medium 42
- Low 2
Disclosures per year
- 2018: 3
- 2019: 7
- 2020: 8
- 2021: 2
- 2022: 42
- 2023: 0
- 2024: 19
- 2025: 0
- 2026: 0
-
Enhanced Image plugin for CKEditor is vulnerable to Cross-site scripting (XSS) this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.