Vulnerabilities in pkg:npm/ckeditor-dev
PACKAGECVE-2018-9861 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Drupal/core libraries in the Packagist ecosystem. The issue involves enhanced image plugin for ckeditor is vulnerable to cross-site scripting (xss). Remediation is available by upgrading affected packages to version 8.5.2, 4.9.2, 8.4.7.
pkg:npm/ckeditor-dev
Vulnerability advisories affecting package pkg:npm/ckeditor-dev. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-g78h-pf65-46rv | CVE-2018-9861 | MODERATE | Enhanced Image plugin for CKEditor is vulnerable to Cross-site scripting (XSS) |
CVE-2018-9861 at a Glance
Security Impact
CVSS: 6.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2018-9861
To remediate this vulnerability, upgrade all affected Drupal/core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade drupal/core to 8.5.2
npm install ckeditor-dev@4.9.2
Upgrade drupal/core to 8.4.7
Upgrade drupal/drupal to 8.4.7
Upgrade drupal/drupal to 8.5.2
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for drupal/core
How to Check if You Are Affected
To determine whether your application is affected by CVE-2018-9861, inspect your project dependencies for Drupal/core:
inspect dependencies for drupal/core
Analyze the terminal output to locate any version of Drupal/core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 8.5.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where 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. In Drupal/core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2018-9861 Affected Drupal/core Versions
5 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
drupal/core
|
Packagist |
≥ 8.5.0
< 8.5.2
|
8.5.2
|
|
ckeditor-dev
|
npm |
≥ 4.5.10
< 4.9.2
|
4.9.2
|
|
drupal/core
|
Packagist |
≥ 8.0
< 8.4.7
|
8.4.7
|
|
drupal/drupal
|
Packagist |
≥ 8.0
< 8.4.7
|
8.4.7
|
|
drupal/drupal
|
Packagist |
≥ 8.5
< 8.5.2
|
8.5.2
|
References
Frequently Asked Questions
What is CVE-2018-9861?
Which Drupal/core versions are affected?
What version fixes CVE-2018-9861?
Is drupal/core affected?
Is ckeditor-dev affected?
What is the CVSS score of CVE-2018-9861?
What CWE is associated with CVE-2018-9861?
How can I check Packagist dependencies for CVE-2018-9861?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-g78h-pf65-46rv",
"modified" : "2023-10-19T18:50:44Z",
"published" : "2022-05-14T00:56:02Z",
"aliases" : [ "CVE-2018-9861" ],
"summary" : "Enhanced Image plugin for CKEditor is vulnerable to Cross-site scripting (XSS)",
"details" : "The Enhanced Image (aka [image2](https://github.com/ckeditor/ckeditor4/tree/master/plugins/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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "drupal/core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.5.0"
}, {
"fixed" : "8.5.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "npm",
"name" : "ckeditor-dev"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.5.10"
}, {
"fixed" : "4.9.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "drupal/core"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.0"
}, {
"fixed" : "8.4.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "drupal/drupal"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.0"
}, {
"fixed" : "8.4.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "drupal/drupal"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "8.5"
}, {
"fixed" : "8.5.2"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-9861"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/core/CVE-2018-9861.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/drupal/drupal/CVE-2018-9861.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/ckeditor/ckeditor-dev/blob/master/CHANGES.md"
}, {
"type" : "WEB",
"url" : "https://www.drupal.org/sa-core-2018-003"
}, {
"type" : "WEB",
"url" : "https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/bid/103924"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-10-19T18:50:44Z",
"nvd_published_at" : "2018-04-19T17:29:00Z"
}
}