Quick answers
- Is CVE-2018-9861 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2018-9861 being exploited in the wild.
- How severe is CVE-2018-9861?
- Low severity, with a CVSS score of 3, published 18 April 2018.
- Which products and versions are affected?
- Drupal 8.0 through 8.4.6, 8.5.0 through 8.5.1; drupal/core (Packagist) ECOSYSTEM:introduced=8.0.0,fixed=8.4.7|ECOSYSTEM:introduced=8.5.0,fixed=8.5.2.
- Is there a fix for CVE-2018-9861?
- Yes. drupal/core (Packagist): upgrade to 8.4.7 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2018-9861 attacked?
- It is attacked over the network.
- Am I affected by CVE-2018-9861?
- Check whether you run Drupal or drupal/core (Packagist) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- drupal/core (Packagist): upgrade to 8.4.7 or later
composer require drupal/core:^8.4.7
Technical details
The vulnerability is a stored/reflected cross-site scripting (XSS) flaw in the Enhanced Image (image2) plugin for CKEditor versions 4.5.10 through 4.9.1. The plugin fails to properly sanitize or validate IMG element attributes, allowing remote attackers to inject arbitrary JavaScript that executes in the context of a viewer's browser. No authentication is required to craft a malicious image element, though the attacker must have a way to inject it into the editor or saved content. The vulnerability was patched in CKEditor 4.9.2 and in Drupal 8.4.7 and 8.5.2, which bundle CKEditor.
Affected products
- CKEditor CKEditor 4.5.10 through 4.9.1
- Drupal Drupal 8.0 through 8.4.6, 8.5.0 through 8.5.1
Identifiers
- CVE-2018-9861
- DRUPAL-CORE-2018-003
- GHSA-g78h-pf65-46rv
Timeline
- 2018-04-19: disclosed: CVE-2018-9861 published
- 2018-04-18: patched: Drupal 8.4.7 and 8.5.2 released with fix
- 2022-05-14: advisory: GHSA-g78h-pf65-46rv published