CVE-2024-43411: Ckeditor4 Cross-Site Scripting Vulnerability
MODERATECVE-2024-43411 is a MODERATE (CVSS 3.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 ckeditor4 low-risk cross-site scripting (xss) vulnerability linked to potential domain takeover. Remediation is available by upgrading affected packages to version 4.25.0.
CVE-2024-43411 at a Glance
Security Impact
CVSS: 3.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:N).
How to Fix CVE-2024-43411
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
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-43411, 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-43411 Affected Ckeditor4 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ckeditor4
|
npm |
≥ 4.22.0
< 4.25.0
|
4.25.0
|
References
Frequently Asked Questions
What is CVE-2024-43411?
Which Ckeditor4 versions are affected?
What version fixes CVE-2024-43411?
Is ckeditor4 affected?
What is the CVSS score of CVE-2024-43411?
What CWE is associated with CVE-2024-43411?
How can I check npm dependencies for CVE-2024-43411?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6v96-m24v-f58j",
"modified" : "2024-11-18T16:27:06Z",
"published" : "2024-08-21T18:31:00Z",
"aliases" : [ "CVE-2024-43411" ],
"summary" : "CKEditor4 low-risk cross-site scripting (XSS) vulnerability linked to potential domain takeover",
"details" : "### Affected Packages\n\nThe issue impacts only editor instances with enabled [version notifications](https://ckeditor.com/docs/ckeditor4/latest/api/CKEDITOR_config.html#cfg-versionCheck).\n\nPlease note that this feature is disabled by default in all CKEditor 4 LTS versions. Therefore, if you use CKEditor 4 LTS, it is highly unlikely that you are affected by this vulnerability. If you are unsure, please [contact us](mailto:security@cksource.com).\n\n### Impact\n\nA theoretical vulnerability has been identified in CKEditor 4.22 (and above). In a highly unlikely scenario where an attacker gains control over the https://cke4.ckeditor.com domain, they could potentially execute an attack on CKEditor 4 instances. Although the vulnerability is purely hypothetical, we have addressed it in CKEditor 4.25.0-lts to ensure compliance with security best practices.\n\n### Patches\n\nThe issue has been recognized and patched. The fix is available in version 4.25.0-lts.\n\n### For More Information\n\nIf you have any questions or comments about this advisory, please email us at [security@cksource.com](mailto:security@cksource.com).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/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" : "4.22.0"
}, {
"fixed" : "4.25.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/ckeditor/ckeditor4/security/advisories/GHSA-6v96-m24v-f58j"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-43411"
}, {
"type" : "WEB",
"url" : "https://github.com/ckeditor/ckeditor4/commit/b5069c9cb769ea22eae1cbd7200f22b1cf2e3a7f"
}, {
"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:31:00Z",
"nvd_published_at" : "2024-08-21T16:15:08Z"
}
}