Vulnerabilities in pkg:npm/ckeditor4
PACKAGECVE-2024-43407 is a MODERATE (CVSS 6.1) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Ckeditor4 libraries in the npm ecosystem. The issue involves code snippet geshi plugin in ckeditor 4 has reflected cross-site scripting (xss) vulnerability. Remediation is available by upgrading affected packages to version 4.25.0.
pkg:npm/ckeditor4
Vulnerability advisories affecting package pkg:npm/ckeditor4. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-7r32-vfj5-c2jv | CVE-2024-43407 | MODERATE | Code Snippet GeSHi plugin in CKEditor 4 has reflected cross-site scripting (XSS) vulnerability |
| GHSA-6v96-m24v-f58j | CVE-2024-43411 | MODERATE | CKEditor4 low-risk cross-site scripting (XSS) vulnerability linked to potential domain takeover |
| GHSA-fq6h-4g8v-qqvm | CVE-2024-24815 | MODERATE | CKEditor4 Cross-site Scripting vulnerability caused by incorrect CDATA detection |
| GHSA-mw2c-vx6j-mg76 | CVE-2024-24816 | MODERATE | CKEditor4 Cross-site Scripting vulnerability in samples with enabled the preview feature |
| GHSA-rgx6-rjj4-c388 | CVE-2021-33829 | MODERATE | ckeditor4 vulnerable to cross-site scripting |
| GHSA-wh5w-82f3-wrxh | CVE-2023-4771 | MODERATE | CKEditor cross-site scripting vulnerability in AJAX sample |
| GHSA-hxjc-9j8v-v9pr | - | MODERATE | Duplicate Advisory: CKEditor Cross-site Scripting vulnerability |
| GHSA-vcjf-mgcg-jxjq | CVE-2020-9281 | MODERATE | CKEditor 4.0 vulnerability in the HTML Data Processor |
| GHSA-4m44-5j2g-xf64 | CVE-2020-27193 | MODERATE | Improper Neutralization of Input During Web Page Generation in CKEditor4 |
| GHSA-4fc4-4p5g-6w89 | CVE-2022-24728 | MODERATE | Cross-site Scripting in CKEditor4 |
| GHSA-wpvm-wqr4-p7cw | CVE-2021-26272 | MODERATE | Inclusion of Functionality from Untrusted Control Sphere in CKEditor 4 |
| GHSA-6226-h7ff-ch6c | CVE-2021-32808 | HIGH | Widget feature vulnerability allowing to execute JavaScript code using undo functionality |
| GHSA-7889-rm5j-hpgg | CVE-2021-32809 | MODERATE | Clipboard feature vulnerability allowing to inject arbitrary HTML into the editor using paste functionality |
| GHSA-m94c-37g6-cjhc | CVE-2021-37695 | HIGH | Fake objects feature vulnerability allowing to execute JavaScript code using malformed HTML. |
| GHSA-pvmx-g8h5-cprj | CVE-2021-41164 | HIGH | Advanced Content Filter (ACF) vulnerability allowing to execute JavaScript code using malformed HTML |
| GHSA-7h26-63m7-qhf2 | CVE-2021-41165 | HIGH | HTML comments vulnerability allowing to execute JavaScript code |
CVE-2024-43407 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.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2024-43407
To remediate this vulnerability, upgrade all affected Ckeditor4 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install ckeditor4@4.25.0
Upgrade ckeditor/ckeditor to 4.25.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls ckeditor4
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2024-43407, inspect your project dependencies using npm:
npm ls ckeditor4
Analyze the terminal output to locate any version of Ckeditor4 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.25.0), your application is affected.
Note: The npm ls ckeditor4 command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
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 Ckeditor4, 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-2024-43407 Affected Ckeditor4 Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ckeditor4
|
npm |
< 4.25.0
|
4.25.0
|
|
ckeditor/ckeditor
|
Packagist |
< 4.25.0
|
4.25.0
|
References
Frequently Asked Questions
What is CVE-2024-43407?
Which Ckeditor4 versions are affected?
What version fixes CVE-2024-43407?
Is ckeditor4 affected?
Is ckeditor/ckeditor affected?
What is the CVSS score of CVE-2024-43407?
What CWE is associated with CVE-2024-43407?
How can I check npm dependencies for CVE-2024-43407?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7r32-vfj5-c2jv",
"modified" : "2025-02-18T19:03:30Z",
"published" : "2024-08-21T18:29:15Z",
"aliases" : [ "CVE-2024-43407" ],
"summary" : "Code Snippet GeSHi plugin in CKEditor 4 has reflected cross-site scripting (XSS) vulnerability",
"details" : "### Affected packages\nThe vulnerability has been discovered in [Code Snippet GeSHi](https://ckeditor.com/cke4/addon/codesnippetgeshi) plugin. All integrators that use [GeSHi syntax highlighter](https://github.com/GeSHi/geshi-1.0) on the backend side can be affected.\n\n### Impact\nA potential vulnerability has been discovered in CKEditor 4 [Code Snippet GeSHi](https://ckeditor.com/cke4/addon/codesnippetgeshi) plugin. The vulnerability allowed a reflected XSS attack by exploiting a flaw in the [GeSHi syntax highlighter library](https://github.com/GeSHi/geshi-1.0) hosted by the victim.\n\nThe GeSHi library was included as a vendor dependency in CKEditor 4 source files. In a specific scenario, an attacker could craft a malicious script that could be executed by sending a request to the GeSHi library hosted on a PHP web server.\n\n### Patches\n\nThe [GeSHi library](https://github.com/GeSHi/geshi-1.0) is no longer actively maintained. Due to the lack of ongoing support and updates, potential security vulnerabilities have been identified with its continued use. To mitigate these risks and enhance the overall security of the CKEditor 4, we have decided to completely remove the GeSHi library as a dependency. This change aims to maintain a secure environment and reduce the risk of any security incidents related to outdated or unsupported software.\n\nTo integrators who still want to use the GeSHi syntax highlighter, we recommend manually adding the [GeSHi library](https://github.com/GeSHi/geshi-1.0) . Please be aware of and understand the potential security vulnerabilities associated with its use.\n\nThe fix is be available in version 4.25.0-lts.\n\n### Acknowledgements\n\nThe CKEditor 4 team would like to thank [Jiasheng He](https://github.com/Hebing123) from Qihoo 360 for recognizing and reporting this vulnerability.\n\n### For more information\n\nEmail us at [security@cksource.com](mailto:security@cksource.com) if you have any questions or comments about this advisory.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "ckeditor4"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.25.0"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "ckeditor/ckeditor"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.25.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ckeditor/ckeditor4/security/advisories/GHSA-7r32-vfj5-c2jv"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-43407"
}, {
"type" : "WEB",
"url" : "https://github.com/ckeditor/ckeditor4/commit/71072c9f7f263329841bd38e7e5309074c82ef94"
}, {
"type" : "WEB",
"url" : "https://github.com/ckeditor/ckeditor4/commit/951e7d75fcbcaa2590b0719fb0bb0dd0539ca6fa"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/ckeditor/ckeditor4"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-08-21T18:29:15Z",
"nvd_published_at" : "2024-08-21T15:15:09Z"
}
}