CVE-2018-9861 Enhanced Image plugin for CKEditor is vulnerable to Cross-site scripting (XSS)

Medium 6.1 Published Updated

Remote attackers can inject arbitrary web script via crafted IMG elements in the CKEditor image plugin, affecting Drupal installations.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2018-9861?

CVE-2018-9861 is a medium-severity cross-site scripting vulnerability in Drupal Drupal, published on 19 Apr 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-79

Which versions are affected by CVE-2018-9861?

11 open source packages ship an affected version, including drupal/core, drupal/drupal and ckeditor-dev. It affects 2 products.

PackageAffectedFixed in
drupal/core PackagistFrom 8.08.4.7
drupal/core PackagistFrom 8.08.4.7
drupal/core PackagistFrom 8.0.08.4.7, 8.5.2
drupal/core PackagistFrom 8.5.08.5.2
drupal/core PackagistFrom 8.5.08.5.2
drupal/drupal PackagistFrom 8.08.4.7
5 more packages
drupal/drupal PackagistFrom 8.08.4.7
drupal/drupal PackagistFrom 8.58.5.2
drupal/drupal PackagistFrom 8.58.5.2
ckeditor-dev npmFrom 4.5.104.9.2
ckeditor-dev npmFrom 4.5.104.9.2

Products include Ckeditor Enhanced Image, Drupal Drupal.

How do I fix CVE-2018-9861?

Upgrade drupal/core to a fixed version for your release line: 8.4.7 or 8.5.2.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2018-9861 being exploited?

There is no known exploitation of CVE-2018-9861 in the wild and no public exploit code.

Sources

Also known as DRUPAL-CORE-2018-003, GHSA-g78h-pf65-46rv, UBUNTU-CVE-2018-9861.

Is CVE-2018-9861 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free